bulma-turbo-themes 0.9.0 → 0.10.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0248000a92c219c5c6c2ef953937cfab605a3a95569eb5d4f1299f54ee454ffa'
4
- data.tar.gz: 147029c64c3eb2921ea8479729f63c64cd781f0e75cc89cefdd549768fb5cf3c
3
+ metadata.gz: 352de76a819f7974bf59413f95c405de1d1221b685ca7bf34e49f39d2ca2cabd
4
+ data.tar.gz: a3462d0c49bce011848030bf0806f68f461d1b7b5e7ac537efb33240daf95323
5
5
  SHA512:
6
- metadata.gz: 3a6e217f897de1f3a5780b8381e2e47656cd12a43705a1f60aaa151cfda2bb480e64ff1ec3ba1846190c1d184db523bf4a45fc1754eacc0cf0db45268ca295f9
7
- data.tar.gz: 919028a99aebd28eb2fec246aaed5b0d61df8eeaf73f946c92067ead7fb30f7cc727858340fb9006ccdae41b97ddf859c2bc03ab8f111040598eaf6b1d5ad115
6
+ metadata.gz: f080c9bb2981b50095fa15a7138206881b1c3ffc2eabf3950908c09ccccef4587c37c6ed0c8849bafca9cc865bf1afc86fdd988e53ab9b8234ebc60ee21ee89e
7
+ data.tar.gz: 10b6bc1c9c576143099ae3d87ec24f7a8e072ae8b8307d34d3d7c481d5bbb30dafdaf872970360a708e846d9cd5ba3cb5f7f7157b3c88dfe100d5c135dadf60c
data/CHANGELOG.md CHANGED
@@ -10,6 +10,24 @@ The format is based on Keep a Changelog and this project adheres to SemVer.
10
10
 
11
11
  - TBD
12
12
 
13
+ ## [0.10.1] - 2025-12-05
14
+
15
+ ### 🐛 Fixed
16
+
17
+ - update actions/create-github-app-token action to v1.12.0 (#153)
18
+
19
+ ## [0.10.0] - 2025-12-05
20
+
21
+ ### ✨ Added
22
+
23
+ - add full theming solution with context and hooks (#151)
24
+
25
+ ### 🐛 Fixed
26
+
27
+ - recognize scoped conventional commits in version bump (#154)
28
+ - update peter-evans/create-pull-request action to v7.0.11 (#148)
29
+ - add missing egress endpoints for Bun CDN downloads
30
+
13
31
  ## [0.9.0] - 2025-12-05
14
32
 
15
33
  ### ✨ Added
data/README.md CHANGED
@@ -158,6 +158,93 @@ document.addEventListener('DOMContentLoaded', () => {
158
158
  });
159
159
  ```
160
160
 
161
+ ### React Native / Cross-Platform
162
+
163
+ This package provides platform-agnostic design tokens that work in React Native, Expo, and other non-web environments.
164
+
165
+ #### Installation
166
+
167
+ ```bash
168
+ bun add @turbocoder13/bulma-turbo-themes
169
+ # or
170
+ npm install @turbocoder13/bulma-turbo-themes
171
+ ```
172
+
173
+ #### Basic Usage (Without Context)
174
+
175
+ ```tsx
176
+ import { useTheme, useThemeColors } from '@turbocoder13/bulma-turbo-themes/tokens/react-native';
177
+
178
+ function MyComponent() {
179
+ const { colors, styles, theme } = useTheme('catppuccin-mocha');
180
+
181
+ return (
182
+ <View style={styles.container}>
183
+ <Text style={styles.h1}>{theme.label}</Text>
184
+ <Text style={[styles.text, { color: colors.brandPrimary }]}>
185
+ Primary color text
186
+ </Text>
187
+ </View>
188
+ );
189
+ }
190
+ ```
191
+
192
+ #### With ThemeProvider (Recommended)
193
+
194
+ ```tsx
195
+ import { ThemeProvider, useThemeContext } from '@turbocoder13/bulma-turbo-themes/tokens/react-native';
196
+ import { useColorScheme } from 'react-native';
197
+
198
+ // Wrap your app with ThemeProvider
199
+ function App() {
200
+ return (
201
+ <ThemeProvider
202
+ useColorScheme={useColorScheme}
203
+ followSystem
204
+ lightTheme="catppuccin-latte"
205
+ darkTheme="catppuccin-mocha"
206
+ >
207
+ <MyApp />
208
+ </ThemeProvider>
209
+ );
210
+ }
211
+
212
+ // Use the theme in any component
213
+ function MyApp() {
214
+ const { colors, styles, setTheme, toggleAppearance, appearance } = useThemeContext();
215
+
216
+ return (
217
+ <View style={styles.container}>
218
+ <Text style={styles.h1}>Welcome!</Text>
219
+ <Button
220
+ title={`Switch to ${appearance === 'dark' ? 'light' : 'dark'}`}
221
+ onPress={toggleAppearance}
222
+ />
223
+ </View>
224
+ );
225
+ }
226
+ ```
227
+
228
+ #### Available Exports
229
+
230
+ | Import Path | Use Case |
231
+ |-------------|----------|
232
+ | `@turbocoder13/bulma-turbo-themes/tokens` | Platform-agnostic tokens (pure data) |
233
+ | `@turbocoder13/bulma-turbo-themes/tokens/react-native` | React Native utilities, hooks, and context |
234
+ | `@turbocoder13/bulma-turbo-themes/tokens.json` | JSON tokens for Flutter, Swift, Kotlin |
235
+ | `@turbocoder13/bulma-turbo-themes/css/*` | CSS files for web |
236
+
237
+ #### Pre-built Styles
238
+
239
+ The React Native module includes pre-built styles for common components:
240
+
241
+ - **Layout**: `container`, `safeArea`, `centered`, `row`
242
+ - **Typography**: `h1`-`h6`, `text`, `textSecondary`, `caption`, `label`, `link`
243
+ - **Components**: `card`, `cardElevated`, `button`, `buttonOutline`, `input`, `listItem`, `badge`, `tag`, `divider`
244
+ - **State Colors**: `success`, `warning`, `danger`, `info`
245
+
246
+ Plus design tokens for `spacing`, `typography`, `borderRadius`, and `shadows`.
247
+
161
248
  ## Testing
162
249
 
163
250
  This project includes comprehensive testing: