-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
P3Priority Level 3 IssuePriority Level 3 Issuefeature requestNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspublic api proposalProposals for Hashi's public APIProposals for Hashi's public API
Description
Detailed Description
Make the gradual adoption API more... well... gradual.
Let the design tokens be imported like querying a GraphQL API; Making it possible to just get the right amount of design tokens for a project.
Context
I saw this code snippet from the tailwind config of clubs.
// tailwind.config.js
const {
theme: { colors, fontFamily },
} = require('@devprotocol/hashi/gradual')And I thought it would be pretty cool if this sort of API was implemented first-class in the gradual adoption feature instead of making the code hacky.
Possible implementation
API Proposal:
const { colors, fontFamily } = require('@devprotocol/hashi/gradual');Also, provide auto-completion through the Tailwind 3.1 types, or through custom JSDoc blocks, or through Typescript type declaration files.
Additional information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
P3Priority Level 3 IssuePriority Level 3 Issuefeature requestNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspublic api proposalProposals for Hashi's public APIProposals for Hashi's public API