@stridge/noctis-design-tokens 1.0.0-beta.0

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.
Files changed (42) hide show
  1. package/README.md +226 -0
  2. package/dist/apply-scopes.d.ts +12 -0
  3. package/dist/apply-scopes.js +30 -0
  4. package/dist/css.d.ts +10 -0
  5. package/dist/css.js +36 -0
  6. package/dist/graph/components.d.ts +6 -0
  7. package/dist/graph/components.js +4488 -0
  8. package/dist/graph/index.d.ts +11 -0
  9. package/dist/graph/index.js +26 -0
  10. package/dist/graph/inputs.d.ts +1 -0
  11. package/dist/graph/inputs.js +23 -0
  12. package/dist/graph/model.d.ts +205 -0
  13. package/dist/graph/model.js +282 -0
  14. package/dist/graph/registry.d.ts +67 -0
  15. package/dist/graph/registry.js +118 -0
  16. package/dist/graph/roles.d.ts +5 -0
  17. package/dist/graph/roles.js +151 -0
  18. package/dist/graph/scales.d.ts +1 -0
  19. package/dist/graph/scales.js +1296 -0
  20. package/dist/graph/serialize.d.ts +16 -0
  21. package/dist/graph/serialize.js +25 -0
  22. package/dist/graph/statics.d.ts +1 -0
  23. package/dist/graph/statics.js +419 -0
  24. package/dist/index.d.ts +26 -0
  25. package/dist/index.js +25 -0
  26. package/dist/palettes.d.ts +70 -0
  27. package/dist/palettes.js +114 -0
  28. package/dist/react/provider.d.ts +23 -0
  29. package/dist/react/provider.js +28 -0
  30. package/dist/react.d.ts +3 -0
  31. package/dist/react.js +3 -0
  32. package/dist/scales.d.ts +186 -0
  33. package/dist/scales.js +186 -0
  34. package/dist/semantic.d.ts +36 -0
  35. package/dist/semantic.js +49 -0
  36. package/dist/swatches.d.ts +24 -0
  37. package/dist/swatches.js +57 -0
  38. package/dist/tokens.css +2607 -0
  39. package/dist/tokens.dtcg.json +3475 -0
  40. package/dist/tokens.json +14658 -0
  41. package/dist/tokens.tailwind.css +479 -0
  42. package/package.json +67 -0
@@ -0,0 +1,57 @@
1
+ //#region src/swatches.ts
2
+ /** Accent options spread across the hue wheel at a consistent lightness/chroma so each calibrates well.
3
+ * The first is the brand accent itself — kept identical to `defaultPreset.accent` so the shipped Dark
4
+ * theme lights up its own swatch (and the readout names it) rather than reading as a custom color. */
5
+ const ACCENT_SWATCHES = [
6
+ {
7
+ name: "Noctis Blue",
8
+ value: "oklch(0.5674 0.1585 275)"
9
+ },
10
+ {
11
+ name: "Blue",
12
+ value: "oklch(0.6 0.14 248)"
13
+ },
14
+ {
15
+ name: "Teal",
16
+ value: "oklch(0.62 0.12 195)"
17
+ },
18
+ {
19
+ name: "Green",
20
+ value: "oklch(0.62 0.15 150)"
21
+ },
22
+ {
23
+ name: "Amber",
24
+ value: "oklch(0.66 0.14 75)"
25
+ },
26
+ {
27
+ name: "Rose",
28
+ value: "oklch(0.58 0.18 18)"
29
+ },
30
+ {
31
+ name: "Violet",
32
+ value: "oklch(0.56 0.18 305)"
33
+ }
34
+ ];
35
+ /** Background options — the base lightness the engine reads to resolve light vs dark and the full ramp.
36
+ * The first is the brand canvas itself — kept identical to `defaultPreset.background` so the shipped
37
+ * Dark theme lights up its own swatch. `Light` already matches the Light preset's canvas. */
38
+ const BACKGROUND_SWATCHES = [
39
+ {
40
+ name: "Dark",
41
+ value: "oklch(0.1711 0.0011 271)"
42
+ },
43
+ {
44
+ name: "Slate",
45
+ value: "oklch(0.21 0.02 264)"
46
+ },
47
+ {
48
+ name: "Light",
49
+ value: "oklch(0.991 0.002 271)"
50
+ },
51
+ {
52
+ name: "Sand",
53
+ value: "oklch(0.97 0.008 85)"
54
+ }
55
+ ];
56
+ //#endregion
57
+ export { ACCENT_SWATCHES, BACKGROUND_SWATCHES };