@plexui/styles 0.16.6 → 0.16.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ export { createTokenResolver, declarationsFor, layerApplies, formatColor, mixColors, resolveValue, } from "./resolve.js";
2
+ export { resolvedTokens, skippedDeclarations, tokenLayers } from "./tokens.generated.js";
3
+ /** The context `resolvedTokens` was built for: a phone in portrait, high density, motion allowed. */
4
+ export const defaultTokenContext = { width: 393, highDensity: true, reducedMotion: false };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tokens/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,SAAS,EACT,YAAY,GAOb,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExF,qGAAqG;AACrG,MAAM,CAAC,MAAM,mBAAmB,GAAiB,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,CAAA","sourcesContent":["/**\n * Plex UI design tokens for platforms that do not read CSS (React Native): `@plexui/styles/tokens`.\n *\n * The CSS token files stay the one source of truth; `tokens.generated.ts` is built from them by\n * `scripts/build-tokens.mjs` (`npm run generate:tokens`), and tests/tokens keeps the two in step.\n *\n * ```ts\n * import { createTokenResolver, tokenLayers, defaultTokenContext } from \"@plexui/styles/tokens\"\n *\n * const tokens = createTokenResolver(tokenLayers, defaultTokenContext, { \"--color-accent\": \"#e5484d\" })\n * tokens.get(\"--color-text\", \"dark\") // \"#ffffff\"\n * tokens.get(\"--accent-500\", \"light\") // the brand accent, darker by black 20%\n * ```\n */\nimport type { TokenContext } from \"./resolve.js\"\n\nexport {\n createTokenResolver,\n declarationsFor,\n layerApplies,\n formatColor,\n mixColors,\n resolveValue,\n type ColorScheme,\n type LayerCondition,\n type TokenContext,\n type TokenLayer,\n type TokenResolver,\n type TokenValue,\n} from \"./resolve.js\"\nexport { resolvedTokens, skippedDeclarations, tokenLayers } from \"./tokens.generated.js\"\n\n/** The context `resolvedTokens` was built for: a phone in portrait, high density, motion allowed. */\nexport const defaultTokenContext: TokenContext = { width: 393, highDensity: true, reducedMotion: false }\n"]}