@rolemodel/optics 0.2.5 → 0.3.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.
@@ -5,50 +5,34 @@
5
5
 
6
6
  @import 'https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap';
7
7
 
8
- @keyframes transition-demo {
9
- from {
10
- background-color: var(--rm-color-white);
11
- color: var(--rm-color-black);
12
- }
13
-
14
- to {
15
- background-color: var(--rm-color-primary-base);
16
- color: var(--rm-color-primary-on-base);
17
- }
18
- }
19
-
20
8
  .transition-demo {
21
9
  display: inline-block;
22
- padding: var(--rm-space-medium);
23
- animation-duration: var(--rm-transition-input);
24
- animation-iteration-count: 1;
25
- animation-name: transition-demo;
26
- background-color: var(--rm-color-primary-base);
27
- color: var(--rm-color-primary-on-base);
10
+ padding: var(--op-space-medium);
11
+ background-color: var(--op-color-primary-base);
12
+ color: var(--op-color-primary-on-base);
13
+ transition: var(--op-transition-input);
14
+
15
+ &:hover {
16
+ background-color: var(--op-color-neutral-base);
17
+ color: var(--op-color-neutral-on-base);
18
+ }
28
19
  }
29
20
 
30
21
  .transition-demo--input {
31
- animation-duration: var(--rm-transition-input);
32
- }
33
-
34
- .transition-demo--navigation {
35
- animation-duration: var(--rm-transition-navigation);
22
+ transition: var(--op-transition-input);
36
23
  }
37
24
 
38
25
  .transition-demo--sidebar {
39
- animation-duration: var(--rm-transition-sidebar);
26
+ transition: var(--op-transition-sidebar);
40
27
  }
41
28
 
42
29
  .transition-demo--modal {
43
- animation-duration: var(--rm-transition-modal);
30
+ transition: var(--op-transition-modal);
44
31
  }
45
32
 
46
33
  .transition-demo--panel {
47
- animation-duration: var(--rm-transition-panel);
48
- }
49
-
50
- .transition-demo--flash {
51
- animation-duration: var(--rm-transition-flash);
34
+ transition: var(--op-transition-panel);
35
+ transition-property: all;
52
36
  }
53
37
 
54
38
  .flash--demo {
@@ -59,19 +43,19 @@
59
43
  }
60
44
 
61
45
  .background-primary-plus-four {
62
- background-color: var(--rm-color-primary-plus-four);
63
- color: var(--rm-color-primary-on-plus-four);
46
+ background-color: var(--op-color-primary-plus-four);
47
+ color: var(--op-color-primary-on-plus-four);
64
48
  }
65
49
 
66
50
  .background-primary-plus-seven {
67
- background-color: var(--rm-color-primary-plus-seven);
68
- color: var(--rm-color-primary-on-plus-seven);
51
+ background-color: var(--op-color-primary-plus-seven);
52
+ color: var(--op-color-primary-on-plus-seven);
69
53
  }
70
54
 
71
55
  .font-family-demo--alternative {
72
- --rm-font-family: 'Tilt Neon', sans-serif;
56
+ --op-font-family: 'Tilt Neon', sans-serif;
73
57
 
74
- font-family: var(--rm-font-family);
58
+ font-family: var(--op-font-family);
75
59
  }
76
60
 
77
61
  .design-token-container {
@@ -94,3 +78,16 @@
94
78
  }
95
79
  }
96
80
  }
81
+
82
+ .input-height-tokens {
83
+ .design-token-container {
84
+ div:nth-child(2) {
85
+ div {
86
+ div:last-child {
87
+ margin: var(--op-space-x-large);
88
+ transform: rotate(90deg);
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
package/.stylelintrc.json CHANGED
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "rules": {
11
11
  "prettier/prettier": true,
12
- "custom-property-pattern": ["(?<=rm-)", { "message": "CSS variables should be prefixed with rm-" }],
12
+ "custom-property-pattern": ["(?<=op-)", { "message": "CSS variables should be prefixed with op-" }],
13
13
  "selector-class-pattern": null
14
14
  }
15
15
  }