Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Make a true gradual adoption API #116

Open
1 task done
MatteuSan opened this issue Jun 18, 2022 · 0 comments
Open
1 task done

[FEATURE] Make a true gradual adoption API #116

MatteuSan opened this issue Jun 18, 2022 · 0 comments
Labels
feature request New feature or request good first issue Good for newcomers P3 Priority Level 3 Issue public api proposal Proposals for Hashi's public API

Comments

@MatteuSan
Copy link
Member

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
@MatteuSan MatteuSan added feature request New feature or request good first issue Good for newcomers P3 Priority Level 3 Issue public api proposal Proposals for Hashi's public API labels Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request good first issue Good for newcomers P3 Priority Level 3 Issue public api proposal Proposals for Hashi's public API
Projects
None yet
Development

No branches or pull requests

1 participant