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: docs/src/content/guides/composition.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
<Subtitle>How Pigment CSS handles css precedence and composition.</Subtitle>
4
4
<Metaname="description"content="How Pigment CSS handles CSS precedence and composition." />
5
5
6
-
Styles authored with Pigment CSS will be scoped to the component and won't affect globals styles or styles of any other styled components.
6
+
Styles authored with Pigment CSS will be scoped to the component and won't affect globals styles or styles of any other styled components. This is mainly done by using uniquely generated class names that are hard to override through global styles since you don't know the class names beforehand.
7
7
8
8
In a way, it is similar to CSS Modules except, the styles are written in JS and colocated with the components.
0 commit comments