Color Variable Import – Best Practice?
Is there a fast and simple way to import color variables into Nordcraft ? I have my color variables set up in Figma , using a custom set of Radix color scales , which are also linked to further aliases (like background -primary -default , etc . , for theming and dark mode ) . How can I replicate this structure in Nordcraft ? From what I see , Nordcraft only allows a single theme file . Also , I ’d prefer to avoid manually entering 200 variables . What ’s the best practice here ? Thanks , that ’s more or less what I expected . In the meantime , I manually imported the variables as CSS in a style tag , and they ’re working surprisingly well (though without autocomplete ) – but only within the main component and its slot children . When I try to edit or create additional components inside this main component , the variable styles aren ’t inherited within the subcomponents . I tried handling this via context , but it feels quite inelegant to repeatedly inject the same formula and context code into every subcomponent just to get access to the same variables . Is there a cleaner solution to add global CSS rules or make variable inheritance work across nested components ?