@react-native-rethemed/material-ui-tokens 0.1.0 → 0.1.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/dist/esm/index.js DELETED
@@ -1,39 +0,0 @@
1
- import { defineTheme } from '@react-native-rethemed/core/config';
2
- import { colors, fontWeights, radii, semanticColors, shadows, spacing, typography, zIndices, } from './tokens.gen.js';
3
- /**
4
- * Material UI's default theme (`createTheme()` from `@mui/material`, which
5
- * follows Material Design 2), converted for React Native. Values are
6
- * generated by `scripts/generate.ts`; see `src/tokens.gen.ts`.
7
- *
8
- * - `semanticColors`: the default `palette` in light and dark mode, as
9
- * `'<group>.<key>'` with Material UI's own names: `'primary.main'`,
10
- * `'primary.contrastText'`, `'text.secondary'`, `'background.paper'`,
11
- * `'action.hover'`, `'divider.default'`.
12
- * - `colors`: `@mui/material/colors` as `'<hue>.<shade>'` (`'red.500'`,
13
- * `'deepPurple.A200'`), plus `black` and `white`. Fixed in both schemes.
14
- * - `typography`: the 13 variants (`h1`…`overline`) as text presets,
15
- * `themed.text.h1()`. rem/em → points at `htmlFontSize` (16); line heights
16
- * absolute; `button` / `overline` keep `textTransform: 'uppercase'`.
17
- * - `spacing`: `theme.spacing(n)`, so `padding: 2` is 16. `radii`: multiples
18
- * of `shape.borderRadius`, so `borderRadius: 2` is 8 — both like `sx`.
19
- * - `shadows`: elevations 0–24, first layer only; `elevation` matches the
20
- * Material elevation on Android exactly.
21
- * - Not included (no RN equivalent): `fontFamily` (Roboto, Android's default
22
- * anyway), breakpoints, transitions, mixins, component overrides, the
23
- * `action.*Opacity` numbers and dark mode's `text.icon`.
24
- */
25
- export const materialUiTheme = defineTheme({
26
- tokens: {
27
- colors,
28
- radii,
29
- spacing,
30
- fontWeights,
31
- zIndices,
32
- shadows,
33
- },
34
- semanticTokens: {
35
- colors: semanticColors,
36
- text: typography,
37
- },
38
- });
39
- export { colors, fontWeights, radii, semanticColors, shadows, spacing, typography, zIndices, };
@@ -1 +0,0 @@
1
- {"type":"module"}