@inchurch/matcha-theme 20.277.0 → 21.0.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.
@@ -4,6 +4,22 @@
4
4
  // Emite as cores cruas como CSS custom properties em :root; a Camada 2 (semânticas)
5
5
  // aponta para estas via var(--matcha-prim-*).
6
6
 
7
+ $matcha-primitives: (
8
+ "red": ("200": #ef9a9a, "a700": #c81010),
9
+ "pink": ("600": #d81b60),
10
+ "purple": ("500": #9c27b0),
11
+ "blue": ("100": #bbdefb, "200": #90caf9, "300": #64b5f6, "350": #4090d8, "700": #1664c2, "a700": #0a2fc2),
12
+ "light-blue": ("500": #03a9f4, "700": #0288d1),
13
+ "teal": ("350": #4fb7ad, "500": #009688, "700": #00796b),
14
+ "green": ("900": #2e7d32, "a100": #b9f6ca, "a200": #69f0ae),
15
+ "light-green": ("200": #c5e1a5, "600": #43a047, "a400": #a8d94e),
16
+ "yellow": ("200": #ffb74d, "500": #e8c300, "600": #a64e00),
17
+ "orange": ("500": #f77814),
18
+ "common": ("white": #ffffff, "black": #000000),
19
+ "brand": ("accent": #54a71d, "accent-dark": #a8d94e),
20
+ "neutral": ("112": #f4f4f4, "143": #f1f4f1, "174": #f0f2f5, "205": #e8eaed, "236": #e4ebe5, "267": #e1e7e2, "298": #d8e1da, "329": #cfd6d1, "360": #c8d2ca, "391": #bdc1c6, "422": #a8b5a0, "453": #9aa0a6, "484": #8a9090, "516": #7a818a, "547": #6e7681, "578": #6e747a, "609": #5a6066, "640": #3d4248, "671": #333842, "702": #2e333c, "733": #2a2d33, "764": #282c34, "795": #262a32, "826": #1c1f26, "857": #1a1d21, "888": #151a22, "919": #111318, "950": #0d0f14, "050": #f7fcf7, "081": #f8faf8),
21
+ );
22
+
7
23
  @mixin matcha-primitives() {
8
24
  :root {
9
25
  // red
@@ -0,0 +1,137 @@
1
+ // =============================================================================
2
+ // DOCUMENTO GERADO AUTOMATICAMENTE — NÃO EDITE À MÃO.
3
+ // Fonte: tokens/matcha/primitives/global.json (Figma · Tokens Studio)
4
+ // Gerador: scripts/matcha-tokens/gen-static.js (gate: gen-static.js --check)
5
+ // Para mudar um valor: edite a fonte e rode o gerador (não edite este arquivo).
6
+ // =============================================================================
7
+ // Tokens NÃO-cor (mode-agnostic). matcha-static-tokens() emite declarações CRUAS
8
+ // (sem seletor): o caller define o escopo (hoje dentro do tema via _emit-tokens.scss;
9
+ // :root mode-agnostic no Track B). Curados sem fonte Figma (avatar, scrim, matcha/text/*
10
+ // compostos, leading/tracking, aliases) ficam no _emit-tokens.scss — backlog matcha-theme-008.
11
+
12
+ @mixin matcha-static-tokens() {
13
+ --matcha-font-family: Manrope, sans-serif;
14
+ --matcha-font-size-2xs: 10px;
15
+ --matcha-font-size-xs: 12px;
16
+ --matcha-font-size-sm: 14px;
17
+ --matcha-font-size-md: 16px;
18
+ --matcha-font-size-lg: 18px;
19
+ --matcha-font-size-xl: 20px;
20
+ --matcha-font-size-2xl: 24px;
21
+ --matcha-font-size-3xl: 32px;
22
+ --matcha-font-size-3xs: 8px;
23
+ --matcha-font-size-4xl: 36px;
24
+ --matcha-font-size-5xl: 48px;
25
+ --matcha-font-size-6xl: 60px;
26
+ --matcha-font-size-7xl: 72px;
27
+ --matcha-weight-normal: 400;
28
+ --matcha-weight-medium: 500;
29
+ --matcha-weight-semi-bold: 600;
30
+ --matcha-weight-bold: 700;
31
+ --matcha-weight-black: 900;
32
+ --matcha-weight-extrabold: 800;
33
+ --matcha-weight-extralight: 200;
34
+ --matcha-weight-light: 300;
35
+ --matcha-easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
36
+ --matcha-easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);
37
+ --matcha-easing-decelerated: cubic-bezier(0.0, 0.0, 0.2, 1);
38
+ --matcha-easing-accelerated: cubic-bezier(0.4, 0.0, 1, 1);
39
+ --matcha-space-100: 8px;
40
+ --matcha-space-150: 12px;
41
+ --matcha-space-200: 16px;
42
+ --matcha-space-250: 20px;
43
+ --matcha-space-300: 24px;
44
+ --matcha-space-400: 32px;
45
+ --matcha-space-500: 40px;
46
+ --matcha-space-600: 48px;
47
+ --matcha-space-800: 64px;
48
+ --matcha-space-1000: 80px;
49
+ --matcha-space-1200: 96px;
50
+ --matcha-space-050: 4px;
51
+ --matcha-space-075: 6px;
52
+ --matcha-space-025: 2px;
53
+ --matcha-radius-none: 0;
54
+ --matcha-radius-sm: 2px;
55
+ --matcha-radius-md: 4px;
56
+ --matcha-radius-lg: 8px;
57
+ --matcha-radius-xl: 16px;
58
+ --matcha-radius-pill: 9999px;
59
+ --matcha-radius-2xl: 12px;
60
+ --matcha-radius-3xs: 6px;
61
+ --matcha-radius-3xl: 24px;
62
+ --matcha-border-hairline: 1px;
63
+ --matcha-border-thin: 2px;
64
+ --matcha-border-medium: 4px;
65
+ --matcha-border-thick: 8px;
66
+ --matcha-opacity-hover: 0.04;
67
+ --matcha-opacity-subtle: 0.1;
68
+ --matcha-opacity-medium: 0.2;
69
+ --matcha-opacity-strong: 0.3;
70
+ --matcha-opacity-disabled: 0.38;
71
+ --matcha-opacity-secondary: 0.54;
72
+ --matcha-opacity-high: 0.87;
73
+ --matcha-duration-instant: 80ms;
74
+ --matcha-duration-fast: 200ms;
75
+ --matcha-duration-normal: 400ms;
76
+ --matcha-duration-slow: 600ms;
77
+ --matcha-line-height-none: 1;
78
+ --matcha-line-height-tight: 1.2;
79
+ --matcha-line-height-normal: 1.5;
80
+ --matcha-line-height-relaxed: 1.75;
81
+ --matcha-letter-spacing-tight: -0.5px;
82
+ --matcha-letter-spacing-normal: 0px;
83
+ --matcha-letter-spacing-wide: 0.5px;
84
+ --matcha-letter-spacing-wider: 1px;
85
+ --matcha-z-base: 1;
86
+ --matcha-z-dropdown: 100;
87
+ --matcha-z-sticky: 200;
88
+ --matcha-z-popover: 300;
89
+ --matcha-z-tooltip: 400;
90
+ --matcha-z-modal-bg: 998;
91
+ --matcha-z-modal: 999;
92
+ --matcha-z-overlay: 1000;
93
+ --matcha-grid-frame-notebook: 1360px;
94
+ --matcha-grid-frame-wide: 1920px;
95
+ --matcha-grid-frame-mobile: 375px;
96
+ --matcha-grid-frame-tablet: 768px;
97
+ --matcha-grid-sidebar-rail: 72px;
98
+ --matcha-grid-sidebar-submenu: 216px;
99
+ --matcha-grid-sidebar-gap: 16px;
100
+ --matcha-grid-sidebar-total: 304px;
101
+ --matcha-grid-col-painel-full: 72px;
102
+ --matcha-grid-col-painel-rail: 88px;
103
+ --matcha-grid-col-painel-compact: 96px;
104
+ --matcha-grid-col-wide-full: 120px;
105
+ --matcha-grid-col-wide-rail: 112px;
106
+ --matcha-grid-col-public-mobile: 80px;
107
+ --matcha-grid-col-public-tablet: 64px;
108
+ --matcha-grid-col-public-desktop: 80px;
109
+ --matcha-grid-gutter-compact: 8px;
110
+ --matcha-grid-gutter-default: 16px;
111
+ --matcha-grid-gutter-wide: 16px;
112
+ --matcha-grid-content-painel-full: 1040px;
113
+ --matcha-grid-content-painel-rail: 1232px;
114
+ --matcha-grid-header-height: 56px;
115
+ --matcha-grid-offset-wide-full: 304px;
116
+ --matcha-grid-offset-wide-rail: 248px;
117
+ --matcha-grid-offset-painel-full: 304px;
118
+ --matcha-grid-offset-painel-rail: 96px;
119
+ --matcha-grid-offset-painel-compact: 24px;
120
+ --matcha-grid-max-content-width: 1600px;
121
+ --matcha-grid-content-wide-full: 1616px;
122
+ --matcha-grid-content-wide-rail: 1520px;
123
+ --matcha-icon-size-sm: 16px;
124
+ --matcha-icon-size-md: 24px;
125
+ --matcha-icon-size-lg: 32px;
126
+ --matcha-icon-size-xl: 48px;
127
+ --matcha-state-layer-hover: 0.08;
128
+ --matcha-state-layer-active: 0.16;
129
+ --matcha-state-layer-pressed: 0.12;
130
+ --matcha-state-layer-subtle: 0.04;
131
+ --matcha-bp-xs: 480px;
132
+ --matcha-bp-sm: 640px;
133
+ --matcha-bp-md: 768px;
134
+ --matcha-bp-lg: 1024px;
135
+ --matcha-bp-xl: 1280px;
136
+ --matcha-bp-2xl: 1536px;
137
+ }
@@ -1,9 +1,6 @@
1
1
  @mixin vendor-chart($theme) {
2
- $primary: map-get($theme, primary);
3
- $accent: map-get($theme, accent);
4
- $warn: map-get($theme, warn);
5
- $background: map-get($theme, background);
6
- $foreground: map-get($theme, foreground);
2
+ // theme-agnóstico: cores via var(--matcha-color-*) (runtime). $theme mantido só
3
+ // na assinatura por retrocompat dos call sites (removido na limpeza de params).
7
4
 
8
5
  // Fixer wrappers
9
6
  .matcha-card,
@@ -53,7 +50,7 @@
53
50
 
54
51
  .active {
55
52
  .legend-label-text {
56
- color: map-get($foreground, label);
53
+ color: var(--matcha-color-text-label);
57
54
  }
58
55
  }
59
56
  }
@@ -66,7 +63,7 @@
66
63
  font-weight: normal;
67
64
  font-size: 16px !important;
68
65
  line-height: 20px;
69
- color: map-get($foreground, foreground);
66
+ color: var(--matcha-color-fg);
70
67
  }
71
68
  }
72
69
 
@@ -76,14 +73,14 @@
76
73
  margin: 0 24px 0 0;
77
74
  border-radius: 8px;
78
75
  position: absolute;
79
- background-color: map-get($background, background-alpha);
76
+ background-color: var(--matcha-color-surface-bg-alpha);
80
77
  @include elevation(1);
81
78
  }
82
79
  }
83
80
 
84
81
  .pie-chart {
85
82
  .pie-label {
86
- fill: map-get($foreground, label);
83
+ fill: var(--matcha-color-text-label);
87
84
  font-size: 16px !important;
88
85
  line-height: 20px;
89
86
  padding: 8px;