@cocoar/ui-tokens 0.1.0-beta.100 → 0.1.0-beta.104

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.
package/css/all.css CHANGED
@@ -33,3 +33,4 @@
33
33
  @import './components-shared.css';
34
34
  @import './code-block.css';
35
35
  @import './menu.css';
36
+ @import './sidebar.css';
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Cocoar Design System - Sidebar Component Tokens
3
+ *
4
+ * Design tokens for sidebar navigation component layout and styling.
5
+ * All tokens use --coar-sidebar-* namespace.
6
+ */
7
+
8
+ :root {
9
+ /* ========================================
10
+ Width and Dimensions
11
+ ======================================== */
12
+
13
+ /* Default sidebar width */
14
+ --coar-sidebar-width: 16rem;
15
+ --coar-sidebar-min-width: 12rem;
16
+ --coar-sidebar-max-width: 20rem;
17
+
18
+ /* Collapsed (icon-only) width */
19
+ --coar-sidebar-collapsed-width: 4rem;
20
+
21
+ /* ========================================
22
+ Visual Styling
23
+ ======================================== */
24
+
25
+ /* Background and borders */
26
+ --coar-sidebar-background: var(--coar-background-neutral-primary);
27
+ --coar-sidebar-border: 1px solid var(--coar-border-neutral-tertiary);
28
+
29
+ /* Optional elevation shadow */
30
+ --coar-sidebar-shadow: none;
31
+
32
+ /* ========================================
33
+ Section Spacing
34
+ ======================================== */
35
+
36
+ /* Header section */
37
+ --coar-sidebar-header-padding: var(--coar-spacing-m);
38
+ --coar-sidebar-header-border: 1px solid var(--coar-border-neutral-tertiary);
39
+
40
+ /* Content section (scrollable area) */
41
+ --coar-sidebar-content-padding: var(--coar-spacing-s);
42
+
43
+ /* Footer section */
44
+ --coar-sidebar-footer-padding: var(--coar-spacing-m);
45
+ --coar-sidebar-footer-border: 1px solid var(--coar-border-neutral-tertiary);
46
+
47
+ /* ========================================
48
+ Scrollbar Styling
49
+ ======================================== */
50
+
51
+ --coar-scrollbar-thumb: rgba(0, 0, 0, 0.2);
52
+ --coar-scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
53
+ }
54
+
55
+ /* ========================================
56
+ Dark Mode Overrides
57
+ ======================================== */
58
+
59
+ .dark-mode {
60
+ --coar-sidebar-background: var(--coar-background-neutral-primary);
61
+ --coar-sidebar-border: 1px solid var(--coar-border-neutral-tertiary);
62
+ --coar-sidebar-header-border: 1px solid var(--coar-border-neutral-tertiary);
63
+ --coar-sidebar-footer-border: 1px solid var(--coar-border-neutral-tertiary);
64
+
65
+ --coar-scrollbar-thumb: rgba(255, 255, 255, 0.2);
66
+ --coar-scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
67
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocoar/ui-tokens",
3
- "version": "0.1.0-beta.100",
3
+ "version": "0.1.0-beta.104",
4
4
  "description": "CSS variables (design tokens) for the Cocoar Design System",
5
5
  "author": "Cocoar",
6
6
  "license": "Apache-2.0",