argot-css 0.0.0-stage → 0.0.1

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 (96) hide show
  1. package/LICENSE.md +20 -0
  2. package/README.md +259 -2
  3. package/bin/argot.js +4 -0
  4. package/dist/cli/ansiColors.d.ts +7 -0
  5. package/dist/cli/ansiColors.js +8 -0
  6. package/dist/cli/ansiColors.js.map +1 -0
  7. package/dist/cli/print.d.ts +2 -0
  8. package/dist/cli/print.js +13 -0
  9. package/dist/cli/print.js.map +1 -0
  10. package/dist/cli/run.d.ts +2 -0
  11. package/dist/cli/run.js +34 -0
  12. package/dist/cli/run.js.map +1 -0
  13. package/dist/cli/usage.d.ts +2 -0
  14. package/dist/cli/usage.js +17 -0
  15. package/dist/cli/usage.js.map +1 -0
  16. package/dist/palette/cli.d.ts +2 -0
  17. package/dist/palette/cli.js +33 -0
  18. package/dist/palette/cli.js.map +1 -0
  19. package/dist/palette/generateName.d.ts +3 -0
  20. package/dist/palette/generateName.js +65 -0
  21. package/dist/palette/generateName.js.map +1 -0
  22. package/dist/palette/generatePalette.d.ts +7 -0
  23. package/dist/palette/generatePalette.js +97 -0
  24. package/dist/palette/generatePalette.js.map +1 -0
  25. package/dist/palette/index.d.ts +5 -0
  26. package/dist/palette/index.js +6 -0
  27. package/dist/palette/index.js.map +1 -0
  28. package/dist/palette/node.d.ts +19 -0
  29. package/dist/palette/node.js +70 -0
  30. package/dist/palette/node.js.map +1 -0
  31. package/dist/palette/parseCssColor.d.ts +7 -0
  32. package/dist/palette/parseCssColor.js +41 -0
  33. package/dist/palette/parseCssColor.js.map +1 -0
  34. package/dist/palette/render.d.ts +8 -0
  35. package/dist/palette/render.js +49 -0
  36. package/dist/palette/render.js.map +1 -0
  37. package/dist/palette/types.d.ts +50 -0
  38. package/dist/palette/types.js +2 -0
  39. package/dist/palette/types.js.map +1 -0
  40. package/dist/palette/validation.d.ts +13 -0
  41. package/dist/palette/validation.js +110 -0
  42. package/dist/palette/validation.js.map +1 -0
  43. package/dist/processor/atImport.d.ts +4 -0
  44. package/dist/processor/atImport.js +149 -0
  45. package/dist/processor/atImport.js.map +1 -0
  46. package/dist/processor/cli.d.ts +1 -0
  47. package/dist/processor/cli.js +32 -0
  48. package/dist/processor/cli.js.map +1 -0
  49. package/dist/processor/index.d.ts +7 -0
  50. package/dist/processor/index.js +47 -0
  51. package/dist/processor/index.js.map +1 -0
  52. package/dist/processor/parseImportParams.d.ts +19 -0
  53. package/dist/processor/parseImportParams.js +139 -0
  54. package/dist/processor/parseImportParams.js.map +1 -0
  55. package/dist/processor/stylelintDefault.d.ts +4 -0
  56. package/dist/processor/stylelintDefault.js +19 -0
  57. package/dist/processor/stylelintDefault.js.map +1 -0
  58. package/dist/semantics/cli.d.ts +2 -0
  59. package/dist/semantics/cli.js +34 -0
  60. package/dist/semantics/cli.js.map +1 -0
  61. package/dist/semantics/generate.d.ts +16 -0
  62. package/dist/semantics/generate.js +53 -0
  63. package/dist/semantics/generate.js.map +1 -0
  64. package/dist/semantics/load-tokens.d.ts +29 -0
  65. package/dist/semantics/load-tokens.js +74 -0
  66. package/dist/semantics/load-tokens.js.map +1 -0
  67. package/dist/semantics/token-index.d.ts +14 -0
  68. package/dist/semantics/token-index.js +30 -0
  69. package/dist/semantics/token-index.js.map +1 -0
  70. package/dist/stylelint/config.d.ts +16 -0
  71. package/dist/stylelint/config.js +19 -0
  72. package/dist/stylelint/config.js.map +1 -0
  73. package/dist/stylelint/index.d.ts +3 -0
  74. package/dist/stylelint/index.js +4 -0
  75. package/dist/stylelint/index.js.map +1 -0
  76. package/dist/stylelint/rules/valid-token.d.ts +3 -0
  77. package/dist/stylelint/rules/valid-token.js +32 -0
  78. package/dist/stylelint/rules/valid-token.js.map +1 -0
  79. package/docs/api.md +514 -0
  80. package/package.json +115 -4
  81. package/templates/base.css +53 -0
  82. package/templates/modules/index.css +0 -0
  83. package/templates/semantics-extended.css +115 -0
  84. package/templates/semantics.css +94 -0
  85. package/templates/styles.css +7 -0
  86. package/tokens/borders.json +37 -0
  87. package/tokens/color-bg.json +104 -0
  88. package/tokens/color-border.json +59 -0
  89. package/tokens/color-chart.json +40 -0
  90. package/tokens/color-icon.json +53 -0
  91. package/tokens/color-text.json +107 -0
  92. package/tokens/layout.json +66 -0
  93. package/tokens/misc.json +16 -0
  94. package/tokens/motion.json +40 -0
  95. package/tokens/spacing.json +41 -0
  96. package/tokens/typography.json +107 -0
@@ -0,0 +1,107 @@
1
+ {
2
+ "text": {
3
+ "primary": {
4
+ "$type": "color",
5
+ "$value": "",
6
+ "$description": "Main body and default copy text.",
7
+ "tier": "core",
8
+ "usage": "body, headings by default",
9
+ "pairsWith": ["bg-main", "bg-raised", "bg-inset"]
10
+ },
11
+ "secondary": {
12
+ "$type": "color",
13
+ "$value": "",
14
+ "$description": "Supporting copy with less emphasis than primary.",
15
+ "tier": "core",
16
+ "usage": "subtitles, metadata, secondary labels",
17
+ "pairsWith": ["bg-main", "bg-raised", "bg-inset"]
18
+ },
19
+ "subtle": {
20
+ "$type": "color",
21
+ "$value": "",
22
+ "$description": "Quietest text for hints, captions, and de-emphasized content.",
23
+ "tier": "core",
24
+ "usage": "captions, placeholder-adjacent hints",
25
+ "pairsWith": ["bg-main", "bg-inset"]
26
+ },
27
+ "interactive": {
28
+ "$type": "color",
29
+ "$value": "",
30
+ "$description": "Default color for text links and text-styled controls. Hover/active use text-interactive-hover and text-interactive-active.",
31
+ "tier": "core",
32
+ "usage": "links, text buttons",
33
+ "pairsWith": ["bg-main", "bg-raised", "bg-inset"]
34
+ },
35
+ "interactive-hover": {
36
+ "$type": "color",
37
+ "$value": "",
38
+ "$description": "Hover state for interactive text.",
39
+ "tier": "core"
40
+ },
41
+ "interactive-active": {
42
+ "$type": "color",
43
+ "$value": "",
44
+ "$description": "Active/pressed state for interactive text.",
45
+ "tier": "core"
46
+ },
47
+ "brand": {
48
+ "$type": "color",
49
+ "$value": "",
50
+ "$description": "Text colored with the primary brand accent.",
51
+ "pairsWith": ["bg-main", "bg-raised", "bg-inset"],
52
+ "tier": "core"
53
+ },
54
+ "brand-secondary": {
55
+ "$type": "color",
56
+ "$value": "",
57
+ "$description": "Text colored with a secondary brand accent.",
58
+ "tier": "core"
59
+ },
60
+ "success": {
61
+ "$type": "color",
62
+ "$value": "",
63
+ "$description": "Text for success messaging and status.",
64
+ "tier": "core",
65
+ "pairsWith": ["bg-success"],
66
+ "related": ["border-success"]
67
+ },
68
+ "warning": {
69
+ "$type": "color",
70
+ "$value": "",
71
+ "$description": "Text for warning messaging and status.",
72
+ "tier": "core",
73
+ "pairsWith": ["bg-warning"],
74
+ "related": ["border-warning"]
75
+ },
76
+ "danger": {
77
+ "$type": "color",
78
+ "$value": "",
79
+ "$description": "Text for danger/error messaging and status.",
80
+ "tier": "core",
81
+ "pairsWith": ["bg-danger"],
82
+ "related": ["border-danger"]
83
+ },
84
+ "info": {
85
+ "$type": "color",
86
+ "$value": "",
87
+ "$description": "Text for informational messaging and status.",
88
+ "tier": "core",
89
+ "pairsWith": ["bg-info"],
90
+ "related": ["border-info"]
91
+ },
92
+ "disabled": {
93
+ "$type": "color",
94
+ "$value": "",
95
+ "$description": "Text on disabled controls or unavailable actions.",
96
+ "tier": "core",
97
+ "pairsWith": ["bg-disabled"]
98
+ },
99
+ "inverse": {
100
+ "$type": "color",
101
+ "$value": "",
102
+ "$description": "Text intended for inverse or high-contrast surfaces.",
103
+ "tier": "core",
104
+ "pairsWith": ["bg-inverse", "bg-brand"]
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "content-max-width": {
3
+ "$type": "dimension",
4
+ "$value": "",
5
+ "$description": "Max width for primary page content.",
6
+ "tier": "core",
7
+ "usage": "main layout container, nav header"
8
+ },
9
+ "overlay-max-width": {
10
+ "$type": "dimension",
11
+ "$value": "",
12
+ "$description": "Max width for overlays such as dialogs.",
13
+ "tier": "core",
14
+ "usage": "modals, dialogs"
15
+ },
16
+ "z": {
17
+ "menu": {
18
+ "$type": "number",
19
+ "$value": 100,
20
+ "$description": "Z-index for menus and dropdowns.",
21
+ "tier": "core"
22
+ },
23
+ "sticky": {
24
+ "$type": "number",
25
+ "$value": 110,
26
+ "$description": "Z-index for sticky headers or bars.",
27
+ "tier": "core"
28
+ },
29
+ "fixed": {
30
+ "$type": "number",
31
+ "$value": 120,
32
+ "$description": "Z-index for fixed-position chrome.",
33
+ "tier": "core"
34
+ },
35
+ "drawer": {
36
+ "$type": "number",
37
+ "$value": 130,
38
+ "$description": "Z-index for drawers and side panels.",
39
+ "tier": "core"
40
+ },
41
+ "dialog": {
42
+ "$type": "number",
43
+ "$value": 140,
44
+ "$description": "Z-index for modal dialogs.",
45
+ "tier": "core"
46
+ },
47
+ "popover": {
48
+ "$type": "number",
49
+ "$value": 150,
50
+ "$description": "Z-index for tooltips and popovers.",
51
+ "tier": "core"
52
+ },
53
+ "tooltip": {
54
+ "$type": "number",
55
+ "$value": 160,
56
+ "$description": "Z-index for tooltips.",
57
+ "tier": "core"
58
+ },
59
+ "toast": {
60
+ "$type": "number",
61
+ "$value": 170,
62
+ "$description": "Z-index for toasts and global notifications.",
63
+ "tier": "core"
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "focus-ring": {
3
+ "$type": "color",
4
+ "$value": "",
5
+ "$description": "Focus indicator color or shorthand used for :focus-visible outlines.",
6
+ "tier": "core",
7
+ "usage": "keyboard focus rings on interactive elements"
8
+ },
9
+ "box-shadow": {
10
+ "$type": "shadow",
11
+ "$value": "",
12
+ "$description": "Default elevation shadow for raised surfaces.",
13
+ "tier": "core",
14
+ "related": ["bg-raised"]
15
+ }
16
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "ease": {
3
+ "in": {
4
+ "$type": "cubicBezier",
5
+ "$value": "ease-in",
6
+ "$description": "Accelerating easing curve.",
7
+ "tier": "core",
8
+ "usage": "system-initiated animations"
9
+ },
10
+ "out": {
11
+ "$type": "cubicBezier",
12
+ "$value": "ease-out",
13
+ "$description": "Decelerating easing curve.",
14
+ "tier": "core",
15
+ "usage": "user-initiated animations"
16
+ },
17
+ "linear": {
18
+ "$type": "cubicBezier",
19
+ "$value": "linear",
20
+ "$description": "Constant-rate easing; defaults to the CSS keyword linear.",
21
+ "tier": "core",
22
+ "usage": "fades or color transitions"
23
+ }
24
+ },
25
+ "duration": {
26
+ "fast": {
27
+ "$type": "duration",
28
+ "$value": "",
29
+ "$description": "Short motion duration.",
30
+ "tier": "core",
31
+ "usage": "micro-interactions, hover"
32
+ },
33
+ "normal": {
34
+ "$type": "duration",
35
+ "$value": "",
36
+ "$description": "Default motion duration for most UI transitions.",
37
+ "tier": "core"
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "space": {
3
+ "xs": {
4
+ "$type": "dimension",
5
+ "$value": "",
6
+ "$description": "Tightest spacing step.",
7
+ "tier": "core",
8
+ "usage": "icon gaps, dense stacks"
9
+ },
10
+ "sm": {
11
+ "$type": "dimension",
12
+ "$value": "",
13
+ "$description": "Small spacing step.",
14
+ "tier": "core"
15
+ },
16
+ "md": {
17
+ "$type": "dimension",
18
+ "$value": "",
19
+ "$description": "Default spacing step for common layout padding or gaps.",
20
+ "tier": "core"
21
+ },
22
+ "lg": {
23
+ "$type": "dimension",
24
+ "$value": "",
25
+ "$description": "Large spacing step for section padding.",
26
+ "tier": "core"
27
+ },
28
+ "xl": {
29
+ "$type": "dimension",
30
+ "$value": "",
31
+ "$description": "Extra-large spacing step.",
32
+ "tier": "core"
33
+ },
34
+ "xxl": {
35
+ "$type": "dimension",
36
+ "$value": "",
37
+ "$description": "Largest spacing step for major layout separation.",
38
+ "tier": "core"
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "font": {
3
+ "body": {
4
+ "$type": "fontFamily",
5
+ "$value": "",
6
+ "$description": "Default typeface for body copy and UI text.",
7
+ "tier": "core"
8
+ },
9
+ "display": {
10
+ "$type": "fontFamily",
11
+ "$value": "",
12
+ "$description": "Typeface for titles and display headings.",
13
+ "tier": "core"
14
+ },
15
+ "mono": {
16
+ "$type": "fontFamily",
17
+ "$value": "",
18
+ "$description": "Monospace typeface for code and tabular data.",
19
+ "tier": "core"
20
+ },
21
+ "size": {
22
+ "xs": {
23
+ "$type": "dimension",
24
+ "$value": "",
25
+ "$description": "Smallest text size.",
26
+ "tier": "core",
27
+ "usage": "captions, fine print"
28
+ },
29
+ "sm": {
30
+ "$type": "dimension",
31
+ "$value": "",
32
+ "$description": "Small text size.",
33
+ "tier": "core",
34
+ "usage": "secondary labels"
35
+ },
36
+ "md": {
37
+ "$type": "dimension",
38
+ "$value": "",
39
+ "$description": "Default body text size.",
40
+ "tier": "core"
41
+ },
42
+ "lg": {
43
+ "$type": "dimension",
44
+ "$value": "",
45
+ "$description": "Large text size.",
46
+ "tier": "core",
47
+ "usage": "lead paragraphs, subheads"
48
+ },
49
+ "xl": {
50
+ "$type": "dimension",
51
+ "$value": "",
52
+ "$description": "Extra-large text size.",
53
+ "tier": "core",
54
+ "usage": "section headings"
55
+ },
56
+ "xxl": {
57
+ "$type": "dimension",
58
+ "$value": "",
59
+ "$description": "Largest display text size when an size is needed.",
60
+ "tier": "core",
61
+ "usage": "page titles"
62
+ }
63
+ },
64
+ "weight": {
65
+ "light": {
66
+ "$type": "fontWeight",
67
+ "$value": "",
68
+ "$description": "Light font weight.",
69
+ "tier": "core"
70
+ },
71
+ "normal": {
72
+ "$type": "fontWeight",
73
+ "$value": "",
74
+ "$description": "Regular/normal font weight.",
75
+ "tier": "core"
76
+ },
77
+ "bold": {
78
+ "$type": "fontWeight",
79
+ "$value": "",
80
+ "$description": "Bold font weight.",
81
+ "tier": "core"
82
+ }
83
+ }
84
+ },
85
+ "line-height": {
86
+ "normal": {
87
+ "$type": "number",
88
+ "$value": "",
89
+ "$description": "Default line height for body text.",
90
+ "tier": "core"
91
+ },
92
+ "tight": {
93
+ "$type": "number",
94
+ "$value": "",
95
+ "$description": "Tighter line height for headings and compact UI.",
96
+ "tier": "core"
97
+ }
98
+ },
99
+ "letter-spacing": {
100
+ "uppercase": {
101
+ "$type": "dimension",
102
+ "$value": "",
103
+ "$description": "Tracking for uppercase or small-caps labels.",
104
+ "tier": "core"
105
+ }
106
+ }
107
+ }