energy-foundations 0.0.1-beta.2
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/README.md +20 -0
- package/dist/energy-foundations.js +1 -0
- package/dist/energy-foundations.umd.cjs +1 -0
- package/dist/fonts/SoleRepsolText_W_Bd.woff +0 -0
- package/dist/fonts/SoleRepsolText_W_Lt.woff +0 -0
- package/dist/fonts/SoleRepsolText_W_Rg.woff +0 -0
- package/dist/fonts/SoleRepsolText_W_SBd.woff +0 -0
- package/dist/fonts/icomoon.eot +0 -0
- package/dist/fonts/icomoon.ttf +0 -0
- package/dist/fonts/icomoon.woff +0 -0
- package/dist/fonts/selection.json +1 -0
- package/dist/foundations/_border.scss +15 -0
- package/dist/foundations/_color.scss +43 -0
- package/dist/foundations/_elevation.scss +9 -0
- package/dist/foundations/_fonts.scss +759 -0
- package/dist/foundations/_grid.scss +68 -0
- package/dist/foundations/_reset.scss +70 -0
- package/dist/foundations/_shadow.scss +10 -0
- package/dist/foundations/_spacing.scss +56 -0
- package/dist/foundations/_state.scss +5 -0
- package/dist/foundations/_typography.scss +33 -0
- package/dist/global.scss +6 -0
- package/dist/logo-repsol.png +0 -0
- package/dist/main.ts +1 -0
- package/dist/mixins/_elevation.scss +15 -0
- package/dist/mixins/_layout.scss +30 -0
- package/dist/mixins/_shadow.scss +9 -0
- package/dist/mixins/_state.scss +5 -0
- package/dist/mixins/_typography.scss +59 -0
- package/dist/mixins/_utils.scss +8 -0
- package/dist/rds-foundations.scss +20 -0
- package/dist/rds-reset.scss +1 -0
- package/dist/rds-variables.scss +24 -0
- package/dist/stories/assets/accessibility.png +0 -0
- package/dist/stories/assets/accessibility.svg +5 -0
- package/dist/stories/assets/addon-library.png +0 -0
- package/dist/stories/assets/assets.png +0 -0
- package/dist/stories/assets/avif-test-image.avif +0 -0
- package/dist/stories/assets/context.png +0 -0
- package/dist/stories/assets/discord.svg +15 -0
- package/dist/stories/assets/docs.png +0 -0
- package/dist/stories/assets/figma-plugin.png +0 -0
- package/dist/stories/assets/figma.png +0 -0
- package/dist/stories/assets/github.svg +3 -0
- package/dist/stories/assets/grid-desktop.png +0 -0
- package/dist/stories/assets/grid-mobile.png +0 -0
- package/dist/stories/assets/grid-tablet.png +0 -0
- package/dist/stories/assets/grid-xd.png +0 -0
- package/dist/stories/assets/logo-repsol.png +0 -0
- package/dist/stories/assets/npm.png +0 -0
- package/dist/stories/assets/portal.png +0 -0
- package/dist/stories/assets/share.png +0 -0
- package/dist/stories/assets/styling.png +0 -0
- package/dist/stories/assets/testing.png +0 -0
- package/dist/stories/assets/theming.png +0 -0
- package/dist/stories/assets/tutorials.svg +12 -0
- package/dist/stories/assets/variables.png +0 -0
- package/dist/stories/assets/youtube.svg +4 -0
- package/dist/stories/border/border.mdx +71 -0
- package/dist/stories/colors/componentColor.mdx +96 -0
- package/dist/stories/colors/componentColors.scss +2 -0
- package/dist/stories/colors/semanticColor.mdx +458 -0
- package/dist/stories/docs/init.mdx +129 -0
- package/dist/stories/docs/quickStartVue.mdx +98 -0
- package/dist/stories/elevation/elevation.mdx +113 -0
- package/dist/stories/fonts/fonts.mdx +165 -0
- package/dist/stories/functional/Layaout.mdx +42 -0
- package/dist/stories/functional/Utils.mdx +22 -0
- package/dist/stories/grid/Breakpoint.stories.js +16 -0
- package/dist/stories/grid/Gridsystem.mdx +172 -0
- package/dist/stories/grid/ResponsiveGrid.stories.js +47 -0
- package/dist/stories/grid/SimpleGridsystem.stories.js +39 -0
- package/dist/stories/grid/gridsystem.scss +86 -0
- package/dist/stories/icons/icon-list.ts +5 -0
- package/dist/stories/icons/icons.mdx +84 -0
- package/dist/stories/spacing/Spacing.mdx +296 -0
- package/dist/stories/spacing/Spacing.stories.js +132 -0
- package/dist/stories/spacing/spacing-story.scss +94 -0
- package/dist/stories/styles/index.scss +373 -0
- package/dist/stories/styles/overwrite.scss +197 -0
- package/dist/style.css +1 -0
- package/dist/variables/_border.scss +16 -0
- package/dist/variables/_color-system.scss +227 -0
- package/dist/variables/_color.scss +207 -0
- package/dist/variables/_elevation.scss +16 -0
- package/dist/variables/_grid.scss +21 -0
- package/dist/variables/_layout.scss +27 -0
- package/dist/variables/_shadow.scss +3 -0
- package/dist/variables/_spacing.scss +47 -0
- package/dist/variables/_state.scss +10 -0
- package/dist/variables/_typography.scss +380 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Meta, Unstyled } from '@storybook/blocks';
|
|
2
|
+
import './../styles/index.scss';
|
|
3
|
+
import './componentColors.scss';
|
|
4
|
+
|
|
5
|
+
<Meta title="Foundations/Color/Component Colors" name="ComponentColors" />
|
|
6
|
+
|
|
7
|
+
# Interactive
|
|
8
|
+
|
|
9
|
+
<Unstyled>
|
|
10
|
+
{/* Content state */}
|
|
11
|
+
<table>
|
|
12
|
+
<tr>
|
|
13
|
+
<th>Content State</th>
|
|
14
|
+
</tr>
|
|
15
|
+
<tr>
|
|
16
|
+
<td class="width__one-third left">
|
|
17
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Hover</h2>
|
|
18
|
+
</td>
|
|
19
|
+
<td>
|
|
20
|
+
<div class="rds-doc__color-circle rds-doc__component-colors__content-state--hover"></div>
|
|
21
|
+
</td>
|
|
22
|
+
<td class="width__one-third right">
|
|
23
|
+
```$rds-color-interactive-content-hover```
|
|
24
|
+
</td>
|
|
25
|
+
</tr>
|
|
26
|
+
<tr>
|
|
27
|
+
<td class="width__one-third left">
|
|
28
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Active</h2>
|
|
29
|
+
</td>
|
|
30
|
+
<td>
|
|
31
|
+
<div class="rds-doc__color-circle rds-doc__component-colors__content-state--active"></div>
|
|
32
|
+
</td>
|
|
33
|
+
<td class="width__one-third right">
|
|
34
|
+
```$rds-color-interactive-content-active```
|
|
35
|
+
</td>
|
|
36
|
+
</tr>
|
|
37
|
+
</table>
|
|
38
|
+
|
|
39
|
+
{/* Interactive Surface */}
|
|
40
|
+
<table>
|
|
41
|
+
<tr>
|
|
42
|
+
<th>Interactive Surface</th>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td class="width__one-third left">
|
|
46
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Default</h2>
|
|
47
|
+
</td>
|
|
48
|
+
<td>
|
|
49
|
+
<div class="rds-doc__color-circle rds-doc__component-colors__interactive-surface--default"></div>
|
|
50
|
+
</td>
|
|
51
|
+
<td class="width__one-third right">
|
|
52
|
+
```$rds-color-interactive-surface-default```
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td class="width__one-third left">
|
|
57
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Alternative</h2>
|
|
58
|
+
</td>
|
|
59
|
+
<td>
|
|
60
|
+
<div class="rds-doc__color-circle rds-doc__component-colors__interactive-surface--alternative"></div>
|
|
61
|
+
</td>
|
|
62
|
+
<td class="width__one-third right">
|
|
63
|
+
```$rds-color-interactive-surface-alternative```
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
</table>
|
|
67
|
+
|
|
68
|
+
{/* Surface States */}
|
|
69
|
+
<table>
|
|
70
|
+
<tr>
|
|
71
|
+
<th>Surface States</th>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td class="width__one-third left">
|
|
75
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Hover</h2>
|
|
76
|
+
</td>
|
|
77
|
+
<td>
|
|
78
|
+
<div class="rds-doc__color-circle rds-doc__component-colors__surface-states--hover"></div>
|
|
79
|
+
</td>
|
|
80
|
+
<td class="width__one-third right">
|
|
81
|
+
```$rds-color-interactive-surface-hover```
|
|
82
|
+
</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td class="width__one-third left">
|
|
86
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Active</h2>
|
|
87
|
+
</td>
|
|
88
|
+
<td>
|
|
89
|
+
<div class="rds-doc__color-circle component-colors__surface-states--active"></div>
|
|
90
|
+
</td>
|
|
91
|
+
<td class="width__one-third right">
|
|
92
|
+
```$rds-color-interactive-surface-active```
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
</table>
|
|
96
|
+
</Unstyled>
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
import { Meta, Unstyled } from '@storybook/blocks';
|
|
2
|
+
import './../styles/index.scss';
|
|
3
|
+
|
|
4
|
+
<Meta title="Foundations/Color/Semantic Color" name="Colorsystem" />
|
|
5
|
+
|
|
6
|
+
# Semantic color
|
|
7
|
+
|
|
8
|
+
<Unstyled>
|
|
9
|
+
<table>
|
|
10
|
+
<tr>
|
|
11
|
+
<th>Content</th>
|
|
12
|
+
</tr>
|
|
13
|
+
<tr>
|
|
14
|
+
<td class="width__one-third left">
|
|
15
|
+
<h2 class="rds-title-01 rds-doc__color-headline">High</h2>
|
|
16
|
+
<span class="rds-body-02"> Navy 80</span>
|
|
17
|
+
</td>
|
|
18
|
+
<td>
|
|
19
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--navy-80">Aa</div>
|
|
20
|
+
</td>
|
|
21
|
+
<td class="width__one-third right">
|
|
22
|
+
```$rds-content-high```
|
|
23
|
+
</td>
|
|
24
|
+
</tr>
|
|
25
|
+
|
|
26
|
+
<tr>
|
|
27
|
+
<td class="width__one-third left">
|
|
28
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Medium</h2>
|
|
29
|
+
<span class="rds-body-02"> Navy 60</span>
|
|
30
|
+
</td>
|
|
31
|
+
<td>
|
|
32
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--navy-60">Aa</div>
|
|
33
|
+
</td>
|
|
34
|
+
<td class="width__one-third right">
|
|
35
|
+
```$rds-content-medium```
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
|
|
39
|
+
<tr>
|
|
40
|
+
<td class="width__one-third left">
|
|
41
|
+
<h2 class="rds-title-01 rds-doc__color-headline">High Inverse</h2>
|
|
42
|
+
<span class="rds-body-02"> Basic White</span>
|
|
43
|
+
</td>
|
|
44
|
+
<td>
|
|
45
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--dark rds-doc__color-circle--basic-white">Aa</div>
|
|
46
|
+
</td>
|
|
47
|
+
<td class="width__one-third right">
|
|
48
|
+
```$rds-content-high-inverse```
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
|
|
52
|
+
<tr>
|
|
53
|
+
<td class="width__one-third left">
|
|
54
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Medium Inverse </h2>
|
|
55
|
+
<span class="rds-body-02"> Basic White 70% opacity</span>
|
|
56
|
+
</td>
|
|
57
|
+
<td>
|
|
58
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--dark rds-doc__color-circle--basic-white-op-07">Aa</div>
|
|
59
|
+
</td>
|
|
60
|
+
<td class="width__one-third right">
|
|
61
|
+
```$rds-content-medium-inverse```
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
</table>
|
|
65
|
+
|
|
66
|
+
<table>
|
|
67
|
+
<tr>
|
|
68
|
+
<th>Content State</th>
|
|
69
|
+
</tr>
|
|
70
|
+
<tr>
|
|
71
|
+
<td class="width__one-third left">
|
|
72
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Disabled</h2>
|
|
73
|
+
<span class="rds-body-02"> Navy 60 30% Opacity</span>
|
|
74
|
+
</td>
|
|
75
|
+
<td>
|
|
76
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--navy-60-op-03">Aa</div>
|
|
77
|
+
</td>
|
|
78
|
+
<td class="width__one-third right">
|
|
79
|
+
```$rds-content-state-disabled```
|
|
80
|
+
</td>
|
|
81
|
+
</tr>
|
|
82
|
+
|
|
83
|
+
<tr>
|
|
84
|
+
<td class="width__one-third left">
|
|
85
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Disabled Inverse</h2>
|
|
86
|
+
<span class="rds-body-02"> Basic White 30% opacity</span>
|
|
87
|
+
</td>
|
|
88
|
+
<td>
|
|
89
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--dark rds-doc__color-circle--basic-white-op-03">Aa</div>
|
|
90
|
+
</td>
|
|
91
|
+
<td class="width__one-third right">
|
|
92
|
+
```$rds-content-state-disabled-inverse```
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
</table>
|
|
96
|
+
</Unstyled>
|
|
97
|
+
|
|
98
|
+
<Unstyled>
|
|
99
|
+
<table>
|
|
100
|
+
<tr>
|
|
101
|
+
<th>Backgrounds</th>
|
|
102
|
+
</tr>
|
|
103
|
+
<tr>
|
|
104
|
+
<td class="width__one-third left">
|
|
105
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Default</h2>
|
|
106
|
+
<span class="rds-body-02"> Basic White</span>
|
|
107
|
+
</td>
|
|
108
|
+
<td>
|
|
109
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--bg-default"></div>
|
|
110
|
+
</td>
|
|
111
|
+
<td class="width__one-third right">
|
|
112
|
+
```$rds-background-default```
|
|
113
|
+
```.rds-backround__default```
|
|
114
|
+
</td>
|
|
115
|
+
</tr>
|
|
116
|
+
</table>
|
|
117
|
+
</Unstyled>
|
|
118
|
+
|
|
119
|
+
<Unstyled>
|
|
120
|
+
<table>
|
|
121
|
+
<tr>
|
|
122
|
+
<th>Surfaces</th>
|
|
123
|
+
</tr>
|
|
124
|
+
<tr>
|
|
125
|
+
<td class="width__one-third left">
|
|
126
|
+
<h2 class="rds-title-01 rds-doc__color-headline">White</h2>
|
|
127
|
+
<span class="rds-body-02"> White</span>
|
|
128
|
+
</td>
|
|
129
|
+
<td>
|
|
130
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--bg-default"></div>
|
|
131
|
+
</td>
|
|
132
|
+
<td class="width__one-third right">
|
|
133
|
+
```$rds-surface-white```
|
|
134
|
+
```.rds-backround__surface-white```
|
|
135
|
+
</td>
|
|
136
|
+
</tr>
|
|
137
|
+
|
|
138
|
+
<tr>
|
|
139
|
+
<td class="width__one-third left">
|
|
140
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Grey</h2>
|
|
141
|
+
<span class="rds-body-02"> Grey</span>
|
|
142
|
+
</td>
|
|
143
|
+
<td>
|
|
144
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--bg-alternative"></div>
|
|
145
|
+
</td>
|
|
146
|
+
<td class="width__one-third right">
|
|
147
|
+
```$rds-surface-grey```
|
|
148
|
+
```.rds-backround__surface-grey```
|
|
149
|
+
</td>
|
|
150
|
+
</tr>
|
|
151
|
+
|
|
152
|
+
<tr>
|
|
153
|
+
<td class="width__one-third left">
|
|
154
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Navy</h2>
|
|
155
|
+
<span class="rds-body-02"> Navy 80</span>
|
|
156
|
+
</td>
|
|
157
|
+
<td>
|
|
158
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--dark"></div>
|
|
159
|
+
</td>
|
|
160
|
+
<td class="width__one-third right">
|
|
161
|
+
```$rds-surface-navy```
|
|
162
|
+
```.rds-backround__surface-navy```
|
|
163
|
+
</td>
|
|
164
|
+
</tr>
|
|
165
|
+
|
|
166
|
+
<tr>
|
|
167
|
+
<td class="width__one-third left">
|
|
168
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Sand</h2>
|
|
169
|
+
<span class="rds-body-02"> Orange 0</span>
|
|
170
|
+
</td>
|
|
171
|
+
<td>
|
|
172
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--bg-sand"></div>
|
|
173
|
+
</td>
|
|
174
|
+
<td class="width__one-third right">
|
|
175
|
+
```$rds-surface-sand```
|
|
176
|
+
```.rds-backround__surface-sand```
|
|
177
|
+
</td>
|
|
178
|
+
</tr>
|
|
179
|
+
</table>
|
|
180
|
+
|
|
181
|
+
<table>
|
|
182
|
+
<tr>
|
|
183
|
+
<th>Highlighted surfaces</th>
|
|
184
|
+
</tr>
|
|
185
|
+
<tr>
|
|
186
|
+
<td class="width__one-third left">
|
|
187
|
+
<h2 class="rds-title-01 rds-doc__color-headline"> Ivory Gradient</h2>
|
|
188
|
+
<span class="rds-body-02"> Gradient ivory</span>
|
|
189
|
+
</td>
|
|
190
|
+
<td>
|
|
191
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--ivory-gradient"></div>
|
|
192
|
+
</td>
|
|
193
|
+
<td class="width__one-third right">
|
|
194
|
+
```$rds-highlightedSurface-ivoryGradient```
|
|
195
|
+
```.rds-backround__highlighted-surface-ivoryGradient```
|
|
196
|
+
</td>
|
|
197
|
+
</tr>
|
|
198
|
+
|
|
199
|
+
<tr>
|
|
200
|
+
<td class="width__one-third left">
|
|
201
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Orange Gradient</h2>
|
|
202
|
+
<span class="rds-body-02"> Gradient orange</span>
|
|
203
|
+
</td>
|
|
204
|
+
<td>
|
|
205
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--orange-gradient"></div>
|
|
206
|
+
</td>
|
|
207
|
+
<td class="width__one-third right">
|
|
208
|
+
```$rds-highlightedSurface-orangeGradient```
|
|
209
|
+
```.rds-backround__highlighted-surface-orangeGradient```
|
|
210
|
+
</td>
|
|
211
|
+
</tr>
|
|
212
|
+
|
|
213
|
+
<tr>
|
|
214
|
+
<td class="width__one-third left">
|
|
215
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Blue Gradient</h2>
|
|
216
|
+
<span class="rds-body-02"> Gradient blue</span>
|
|
217
|
+
</td>
|
|
218
|
+
<td>
|
|
219
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--blue-gradient"></div>
|
|
220
|
+
</td>
|
|
221
|
+
<td class="width__one-third right">
|
|
222
|
+
```$rds-highlightedSurface-blueGradient```
|
|
223
|
+
```.rds-backround__highlighted-surface-blueGradient```
|
|
224
|
+
</td>
|
|
225
|
+
</tr>
|
|
226
|
+
</table>
|
|
227
|
+
</Unstyled>
|
|
228
|
+
|
|
229
|
+
<Unstyled>
|
|
230
|
+
<table>
|
|
231
|
+
<tr>
|
|
232
|
+
<th>Border</th>
|
|
233
|
+
</tr>
|
|
234
|
+
<tr>
|
|
235
|
+
<td class="width__one-third left">
|
|
236
|
+
<h2 class="rds-title-01 rds-doc__color-headline">High</h2>
|
|
237
|
+
<span class="rds-body-02"> Navy 30</span>
|
|
238
|
+
</td>
|
|
239
|
+
<td>
|
|
240
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--bg-default"></div>
|
|
241
|
+
</td>
|
|
242
|
+
<td class="width__one-third right">
|
|
243
|
+
```$rds-border-high```
|
|
244
|
+
</td>
|
|
245
|
+
</tr>
|
|
246
|
+
|
|
247
|
+
<tr>
|
|
248
|
+
<td class="width__one-third left">
|
|
249
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Low</h2>
|
|
250
|
+
<span class="rds-body-02"> Navy 05</span>
|
|
251
|
+
</td>
|
|
252
|
+
<td>
|
|
253
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--border-low"></div>
|
|
254
|
+
</td>
|
|
255
|
+
<td class="width__one-third right">
|
|
256
|
+
```$rds-border-low```
|
|
257
|
+
</td>
|
|
258
|
+
</tr>
|
|
259
|
+
|
|
260
|
+
<tr>
|
|
261
|
+
<td class="width__one-third left">
|
|
262
|
+
<h2 class="rds-title-01 rds-doc__color-headline">High Inverse</h2>
|
|
263
|
+
<span class="rds-body-02"> Basic white 50% opacity</span>
|
|
264
|
+
</td>
|
|
265
|
+
<td>
|
|
266
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--border-high-inverse"></div>
|
|
267
|
+
</td>
|
|
268
|
+
<td class="width__one-third right">
|
|
269
|
+
```$rds-border-high-inverse```
|
|
270
|
+
</td>
|
|
271
|
+
</tr>
|
|
272
|
+
|
|
273
|
+
<tr>
|
|
274
|
+
<td class="width__one-third left">
|
|
275
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Low Inverse</h2>
|
|
276
|
+
<span class="rds-body-02"> Basic white 25% opacity</span>
|
|
277
|
+
</td>
|
|
278
|
+
<td>
|
|
279
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--border-low-inverse"></div>
|
|
280
|
+
</td>
|
|
281
|
+
<td class="width__one-third right">
|
|
282
|
+
```$rds-border-low-inverse```
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
</table>
|
|
286
|
+
|
|
287
|
+
<table>
|
|
288
|
+
<tr>
|
|
289
|
+
<th>Highlighted border</th>
|
|
290
|
+
</tr>
|
|
291
|
+
<tr>
|
|
292
|
+
<td class="width__one-third left">
|
|
293
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Orange Gradient</h2>
|
|
294
|
+
<span class="rds-body-02"> Gradient orange</span>
|
|
295
|
+
</td>
|
|
296
|
+
<td>
|
|
297
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--border-orange-gradient"></div>
|
|
298
|
+
</td>
|
|
299
|
+
<td class="width__one-third right">
|
|
300
|
+
```$rds-highlightedBorder-orangeGradient```
|
|
301
|
+
</td>
|
|
302
|
+
</tr>
|
|
303
|
+
</table>
|
|
304
|
+
</Unstyled>
|
|
305
|
+
|
|
306
|
+
<Unstyled>
|
|
307
|
+
<table>
|
|
308
|
+
<tr>
|
|
309
|
+
<th>Semantic content</th>
|
|
310
|
+
</tr>
|
|
311
|
+
<tr>
|
|
312
|
+
<td class="width__one-third left">
|
|
313
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Success</h2>
|
|
314
|
+
<span class="rds-body-02"> Green 50</span>
|
|
315
|
+
</td>
|
|
316
|
+
<td class="center">
|
|
317
|
+
<div class="rds-doc__color-text rds-doc__color-text--success rds-title-01">Aa</div>
|
|
318
|
+
</td>
|
|
319
|
+
<td class="width__one-third right">
|
|
320
|
+
```$rds-semantic-content-success```
|
|
321
|
+
</td>
|
|
322
|
+
</tr>
|
|
323
|
+
|
|
324
|
+
<tr>
|
|
325
|
+
<td class="width__one-third left">
|
|
326
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Error</h2>
|
|
327
|
+
<span class="rds-body-02"> Red 60</span>
|
|
328
|
+
</td>
|
|
329
|
+
<td class="center">
|
|
330
|
+
<div class="rds-doc__color-text rds-doc__color-text--error rds-title-01">Aa</div>
|
|
331
|
+
</td>
|
|
332
|
+
<td class="width__one-third right">
|
|
333
|
+
```$rds-semantic-content-error```
|
|
334
|
+
</td>
|
|
335
|
+
</tr>
|
|
336
|
+
|
|
337
|
+
<tr>
|
|
338
|
+
<td class="width__one-third left">
|
|
339
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Warning</h2>
|
|
340
|
+
<span class="rds-body-02"> Yellow 60</span>
|
|
341
|
+
</td>
|
|
342
|
+
<td class="center">
|
|
343
|
+
<div class="rds-doc__color-text rds-doc__color-text--warning rds-title-01">Aa</div>
|
|
344
|
+
</td>
|
|
345
|
+
<td class="width__one-third right">
|
|
346
|
+
```$rds-semantic-content-warning```
|
|
347
|
+
</td>
|
|
348
|
+
</tr>
|
|
349
|
+
|
|
350
|
+
<tr>
|
|
351
|
+
<td class="width__one-third left">
|
|
352
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Information</h2>
|
|
353
|
+
<span class="rds-body-02"> Turquoise 50</span>
|
|
354
|
+
</td>
|
|
355
|
+
<td class="center">
|
|
356
|
+
<div class="rds-doc__color-text rds-doc__color-text--information rds-title-01">Aa</div>
|
|
357
|
+
</td>
|
|
358
|
+
<td class="width__one-third right">
|
|
359
|
+
```$rds-semantic-content-information```
|
|
360
|
+
</td>
|
|
361
|
+
</tr>
|
|
362
|
+
</table>
|
|
363
|
+
|
|
364
|
+
<table>
|
|
365
|
+
<tr>
|
|
366
|
+
<th>Semantic Surface</th>
|
|
367
|
+
</tr>
|
|
368
|
+
<tr>
|
|
369
|
+
<td class="width__one-third left">
|
|
370
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Success</h2>
|
|
371
|
+
<span class="rds-body-02"> Green 50</span>
|
|
372
|
+
</td>
|
|
373
|
+
<td>
|
|
374
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--sf-success"></div>
|
|
375
|
+
</td>
|
|
376
|
+
<td class="width__one-third right">
|
|
377
|
+
```$rds-semantic-background-success```
|
|
378
|
+
</td>
|
|
379
|
+
</tr>
|
|
380
|
+
|
|
381
|
+
<tr>
|
|
382
|
+
<td class="width__one-third left">
|
|
383
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Error</h2>
|
|
384
|
+
<span class="rds-body-02"> Red 05</span>
|
|
385
|
+
</td>
|
|
386
|
+
<td>
|
|
387
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--sf-error"></div>
|
|
388
|
+
</td>
|
|
389
|
+
<td class="width__one-third right">
|
|
390
|
+
```$rds-semantic-background-error```
|
|
391
|
+
</td>
|
|
392
|
+
</tr>
|
|
393
|
+
|
|
394
|
+
<tr>
|
|
395
|
+
<td class="width__one-third left">
|
|
396
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Warning</h2>
|
|
397
|
+
<span class="rds-body-02"> Yellow 10</span>
|
|
398
|
+
</td>
|
|
399
|
+
<td>
|
|
400
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--sf-warning"></div>
|
|
401
|
+
</td>
|
|
402
|
+
<td class="width__one-third right">
|
|
403
|
+
```$rds-semantic-background-warning```
|
|
404
|
+
</td>
|
|
405
|
+
</tr>
|
|
406
|
+
|
|
407
|
+
<tr>
|
|
408
|
+
<td class="width__one-third left">
|
|
409
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Information</h2>
|
|
410
|
+
<span class="rds-body-02"> Turquoise 05</span>
|
|
411
|
+
</td>
|
|
412
|
+
<td>
|
|
413
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--sf-information"></div>
|
|
414
|
+
</td>
|
|
415
|
+
<td class="width__one-third right">
|
|
416
|
+
```$rds-semantic-background-information```
|
|
417
|
+
</td>
|
|
418
|
+
</tr>
|
|
419
|
+
</table>
|
|
420
|
+
</Unstyled>
|
|
421
|
+
|
|
422
|
+
<Unstyled>
|
|
423
|
+
<table>
|
|
424
|
+
<tr>
|
|
425
|
+
<th>Extended content</th>
|
|
426
|
+
</tr>
|
|
427
|
+
<tr>
|
|
428
|
+
<td class="width__one-third left">
|
|
429
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Promo</h2>
|
|
430
|
+
<span class="rds-body-02"> Red 50</span>
|
|
431
|
+
</td>
|
|
432
|
+
<td class="center">
|
|
433
|
+
<div class="rds-doc__color-text rds-doc__color-text--promo rds-title-01">Aa</div>
|
|
434
|
+
</td>
|
|
435
|
+
<td class="width__one-third right">
|
|
436
|
+
```$rds-extended-content-promo```
|
|
437
|
+
</td>
|
|
438
|
+
</tr>
|
|
439
|
+
</table>
|
|
440
|
+
|
|
441
|
+
<table>
|
|
442
|
+
<tr>
|
|
443
|
+
<th>Extended surface</th>
|
|
444
|
+
</tr>
|
|
445
|
+
<tr>
|
|
446
|
+
<td class="width__one-third left">
|
|
447
|
+
<h2 class="rds-title-01 rds-doc__color-headline">Promo</h2>
|
|
448
|
+
<span class="rds-body-02"> Red 50</span>
|
|
449
|
+
</td>
|
|
450
|
+
<td>
|
|
451
|
+
<div class="rds-doc__color-circle rds-doc__color-circle--promo"></div>
|
|
452
|
+
</td>
|
|
453
|
+
<td class="width__one-third right">
|
|
454
|
+
```$rds-extended-surface-promo```
|
|
455
|
+
</td>
|
|
456
|
+
</tr>
|
|
457
|
+
</table>
|
|
458
|
+
</Unstyled>
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Meta } from "@storybook/blocks";
|
|
2
|
+
import './../styles/index.scss';
|
|
3
|
+
|
|
4
|
+
import Github from "./../assets/github.svg";
|
|
5
|
+
import Discord from "./../assets/discord.svg";
|
|
6
|
+
import Youtube from "./../assets/youtube.svg";
|
|
7
|
+
import Tutorials from "./../assets/tutorials.svg";
|
|
8
|
+
import Styling from "./../assets/styling.png";
|
|
9
|
+
import Context from "./../assets/context.png";
|
|
10
|
+
import Assets from "./../assets/assets.png";
|
|
11
|
+
import Docs from "./../assets/docs.png";
|
|
12
|
+
import Share from "./../assets/share.png";
|
|
13
|
+
import FigmaPlugin from "./../assets/figma-plugin.png";
|
|
14
|
+
import Testing from "./../assets/testing.png";
|
|
15
|
+
import Accessibility from "./../assets/accessibility.png";
|
|
16
|
+
import Theming from "./../assets/theming.png";
|
|
17
|
+
import AddonLibrary from "./../assets/addon-library.png";
|
|
18
|
+
import Figma from "./../assets/figma.png";
|
|
19
|
+
import NPM from "./../assets/npm.png";
|
|
20
|
+
import Portal from "./../assets/portal.png";
|
|
21
|
+
import VarNaming from "./../assets/variables.png";
|
|
22
|
+
|
|
23
|
+
export const RightArrow = () => <svg
|
|
24
|
+
viewBox="0 0 14 14"
|
|
25
|
+
width="8px"
|
|
26
|
+
height="14px"
|
|
27
|
+
style={{
|
|
28
|
+
marginLeft: '4px',
|
|
29
|
+
display: 'inline-block',
|
|
30
|
+
shapeRendering: 'inherit',
|
|
31
|
+
verticalAlign: 'middle',
|
|
32
|
+
fill: 'currentColor',
|
|
33
|
+
'path fill': 'currentColor'
|
|
34
|
+
}}
|
|
35
|
+
>
|
|
36
|
+
<path d="m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z" />
|
|
37
|
+
</svg>
|
|
38
|
+
|
|
39
|
+
<Meta title="Inicio" />
|
|
40
|
+
|
|
41
|
+
<div className="sb-container">
|
|
42
|
+
<div className='sb-section-title'>
|
|
43
|
+
# Energy-foundations
|
|
44
|
+
|
|
45
|
+
Esta es la librería CSS del sistema de diseño de Repsol Energy. En ella podrás encontrar todos los recursos necesarios
|
|
46
|
+
para construir el UI de nuestras aplicaciones corporativas: clases,tokens de color, tamaños, espaciado, elevación, topografía , etc.
|
|
47
|
+
|
|
48
|
+
Está pensada para ser integrada directamente en aplicaciones SPA, web estáticas o portales de AEM. Además es el pilar básico para construir otras librerías como energy-components.
|
|
49
|
+
|
|
50
|
+
</div>
|
|
51
|
+
<div className="mt-2 sb-section">
|
|
52
|
+
|
|
53
|
+
<div className="sb-section-item">
|
|
54
|
+
<img
|
|
55
|
+
src={Figma}
|
|
56
|
+
/>
|
|
57
|
+
<h4 className="sb-section-item-heading">Diseño en figma</h4>
|
|
58
|
+
<p className="sb-section-item-paragraph">Accede a nuestro diseño de foundations en figma</p>
|
|
59
|
+
<a
|
|
60
|
+
href="https://storybook.js.org/docs/vue3/configure/styling-and-css"
|
|
61
|
+
target="_blank"
|
|
62
|
+
>acceder<RightArrow /></a>
|
|
63
|
+
</div>
|
|
64
|
+
<div className="sb-section-item">
|
|
65
|
+
<img
|
|
66
|
+
src={NPM}
|
|
67
|
+
/>
|
|
68
|
+
<h4 className="sb-section-item-heading">Repositorio NPM</h4>
|
|
69
|
+
<p className="sb-section-item-paragraph">Nuestra librería se encunetra disponible en un repositorio NPM. Accede</p>
|
|
70
|
+
<a
|
|
71
|
+
href="https://storybook.js.org/docs/vue3/writing-stories/decorators#context-for-mocking"
|
|
72
|
+
target="_blank"
|
|
73
|
+
>acceder<RightArrow /></a>
|
|
74
|
+
</div>
|
|
75
|
+
<div className="sb-section-item">
|
|
76
|
+
<img src={Portal} />
|
|
77
|
+
<div>
|
|
78
|
+
<h4 className="sb-section-item-heading">Portal oficial Energy</h4>
|
|
79
|
+
<p className="sb-section-item-paragraph">En nuestro portal oficial nuestro equipo de diseño te explica cada uno de los elementos de Energy</p>
|
|
80
|
+
<a
|
|
81
|
+
href="https://storybook.js.org/docs/vue3/configure/images-and-assets"
|
|
82
|
+
target="_blank"
|
|
83
|
+
>acceder<RightArrow /></a>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div className="mt-2 sb-container">
|
|
89
|
+
<div className='sb-section-title'>
|
|
90
|
+
# Más acerca de Energy-foundations
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<div class="mt-1">
|
|
96
|
+
### BEM: utilizamos esta metodología para escribir código CSS
|
|
97
|
+
|
|
98
|
+
<iframe class="mt-1" width="100%" height="615" src="https://getbem.com/" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
99
|
+
|
|
100
|
+
<div class="mt-1">
|
|
101
|
+
#### Ejemplos
|
|
102
|
+
|
|
103
|
+
- **margin**: ```.rds-mt-01```
|
|
104
|
+
- **Clase padre de un elemento**: ```.rds-element```
|
|
105
|
+
- **Clase de un elemento hijo de ese padre**: ```.rds-element__content```
|
|
106
|
+
- **Clase modificadora de ese hijo**: ```.rds-element__content--dark```
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div class="mt-1">
|
|
111
|
+
### Naming variables
|
|
112
|
+
|
|
113
|
+
En Energy-foundations utilizamos una nomenclatura específica para nombrar nuestras variables.
|
|
114
|
+
Optamos por seguir la filosofía clean code. Preferimos nombres largos y descriptivos antes que nombres cortos y crípticos.
|
|
115
|
+
A continuación te mostramos un ejemplo de cómo nombramos nuestras variables.
|
|
116
|
+
|
|
117
|
+
<img src={VarNaming}/>
|
|
118
|
+
|
|
119
|
+
<div class="mt-1">
|
|
120
|
+
#### Ejemplos
|
|
121
|
+
|
|
122
|
+
- **Color**: ```$rds-color-primary```
|
|
123
|
+
- **Typography**: ```$rds-typography-numbers-02```
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
</div>
|
|
129
|
+
|