-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathglobal.css
More file actions
17 lines (14 loc) · 1.01 KB
/
Copy pathglobal.css
File metadata and controls
17 lines (14 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@import 'tailwindcss/theme.css' layer(theme);
@import 'tailwindcss/preflight.css' layer(base);
@import 'tailwindcss/utilities.css';
@import 'nativewind/theme';
@import './theme-tokens.css';
/* Native dark mode: the colour-scheme media query, which react-native-css drives from Appearance.
GluestackUIProvider calls Appearance.setColorScheme() for explicit light/dark choices, so this
covers a user-selected theme as well as the system one, and it is the same query the tokens flip on.
There is deliberately no theme class on native. The provider used to put one on the View wrapping
the whole app, and any className on that wrapper stops every native ScrollView beneath it from
starting a pan: a drag on plain content did nothing app-wide, and only a Pressable handing the
responder off could scroll anything. Keep this selector-free — react-native-css silently drops
rules whose selectors it cannot evaluate, which takes dark mode with them. */
@custom-variant dark (@media (prefers-color-scheme: dark));