ShtukbaseStandard
página del paquete→ /design/tokens.json

pages/design/tokens.json

68 líneas, 2.8 KB. Abrir tal cual (en un proyecto hay otros archivos a su lado; aquí pueden faltar).

El archivo tal como está en el paquete: el código y sus comentarios no se traducen.

  1. {
  2. "$description": "Design tokens of the project in the W3C DTCG format. Build the CSS: shtuk run design-tokens build",
  3. "color": {
  4. "$type": "color",
  5. "neutral": {
  6. "0": { "$value": { "colorSpace": "oklch", "components": [1, 0, 0], "hex": "#ffffff" } },
  7. "100": { "$value": { "colorSpace": "oklch", "components": [0.97, 0, 0], "hex": "#f5f5f5" } },
  8. "500": { "$value": { "colorSpace": "oklch", "components": [0.54, 0, 0], "hex": "#6f6f6f" } },
  9. "900": { "$value": { "colorSpace": "oklch", "components": [0.205, 0, 0], "hex": "#171717" } }
  10. },
  11. "brand": { "$value": { "colorSpace": "srgb", "components": [0.204, 0.388, 0.922], "hex": "#3463eb" } },
  12. "background": { "$value": "{color.neutral.0}", "$description": "Page background" },
  13. "foreground": { "$value": "{color.neutral.900}", "$description": "Body text" },
  14. "muted": { "$value": "{color.neutral.100}" },
  15. "muted-foreground": { "$value": "{color.neutral.500}" },
  16. "primary": { "$value": "{color.brand}" },
  17. "primary-foreground": { "$value": "{color.neutral.0}" }
  18. },
  19. "space": {
  20. "$type": "dimension",
  21. "1": { "$value": { "value": 4, "unit": "px" } },
  22. "2": { "$value": { "value": 8, "unit": "px" } },
  23. "4": { "$value": { "value": 16, "unit": "px" } },
  24. "6": { "$value": { "value": 24, "unit": "px" } }
  25. },
  26. "radius": {
  27. "$type": "dimension",
  28. "sm": { "$value": { "value": 4, "unit": "px" } },
  29. "md": { "$value": { "value": 8, "unit": "px" } }
  30. },
  31. "font": {
  32. "family": { "$type": "fontFamily", "sans": { "$value": ["Inter", "system-ui", "sans-serif"] } },
  33. "size": {
  34. "$type": "dimension",
  35. "body": { "$value": { "value": 1, "unit": "rem" } },
  36. "title": { "$value": { "value": 1.5, "unit": "rem" } }
  37. },
  38. "weight": { "$type": "fontWeight", "regular": { "$value": 400 }, "bold": { "$value": "bold" } }
  39. },
  40. "motion": {
  41. "fast": { "$type": "duration", "$value": { "value": 150, "unit": "ms" } },
  42. "ease": { "$type": "cubicBezier", "$value": [0.2, 0, 0, 1] }
  43. },
  44. "shadow": {
  45. "$type": "shadow",
  46. "sm": {
  47. "$value": {
  48. "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.08 },
  49. "offsetX": { "value": 0, "unit": "px" },
  50. "offsetY": { "value": 1, "unit": "px" },
  51. "blur": { "value": 2, "unit": "px" },
  52. "spread": { "value": 0, "unit": "px" }
  53. }
  54. }
  55. },
  56. "border": {
  57. "default": {
  58. "$type": "border",
  59. "$value": { "color": "{color.muted}", "width": { "value": 1, "unit": "px" }, "style": "solid" }
  60. }
  61. },
  62. "text": {
  63. "body": {
  64. "$type": "typography",
  65. "$value": { "fontFamily": "{font.family.sans}", "fontSize": "{font.size.body}", "fontWeight": "{font.weight.regular}", "letterSpacing": { "value": 0, "unit": "px" }, "lineHeight": 1.5 }
  66. }
  67. }
  68. }