You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/pages/guides/styling/applying.mdx
+60Lines changed: 60 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,66 @@ import { Tabs } from 'nextra/components'
5
5
6
6
You can refer to the [Foundations section](../../foundations) to understand how is the tokens definition. You can use them in your app as [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) which are defined in the theme, as mentioned in the Theme guide.
7
7
8
+
## Importing CSS
9
+
10
+
Shoreline provides several CSS exports that you can import into your application. The simplest way is to import the complete stylesheet:
11
+
12
+
```jsx
13
+
import'@vtex/shoreline/css'
14
+
```
15
+
16
+
This imports all styles including tokens, reset, base, and components styles with [cascade layers](./cascade-layers).
17
+
18
+
### Individual Stylesheets
19
+
20
+
You can also import individual stylesheets for more granular control:
> **Note:** Layered stylesheets use [CSS cascade layers](./cascade-layers) for better style organization and control. Unlayered versions are available for environments that don't support cascade layers.
67
+
8
68
The way you will apply the styles in your application depends on the tooling you are using. In the following example we will show how to apply styles using `CSS` and html `style` property.
0 commit comments