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
For now these CSS variables are not used internally, so changing them won't change the look of your skin. This is planned
256
-
for after HSL color support comes in NativeScript 6.2.
255
+
For now these CSS variables are not used internally, so changing them won't change the look of your skin. This is planned
256
+
for after HSL color support comes in NativeScript 6.2.
257
257
258
258
## Kendo UI ThemeBuilder support
259
259
260
260
The theme now supports inheriting the [Kendo UI ThemeBuilder](https://themebuilder.telerik.com/) theme variables. Just head
261
-
there, customize your Keno UI SASS theme and hit the Download button. You will get a ZIP with two files in it - the theme CSS
262
-
that you can use to style your web app, and `variables.scss` - the one you need for your NativeScript theme. It will look
261
+
there, customize your Keno UI SASS theme and hit the Download button. You will get a ZIP with two files in it - the theme CSS
262
+
that you can use to style your web app, and `variables.scss` - the one you need for your NativeScript theme. It will look
263
263
something like this:
264
264
265
265
```scss
@@ -294,27 +294,27 @@ Take this file, add the following under it:
294
294
// Uncomment this row, if you target compat styling:
295
295
// $compat: true;
296
296
297
-
@import'~nativescript-theme-core/index';
297
+
@import'~@nativescript/theme/index';
298
298
```
299
299
300
300
And load the file after your core theme. It should just work™. If it doesn't - head for the issues section.
301
301
302
302
## Theme classes and compatibility
303
303
304
-
The old generic theme classes have been retired to avoid clashes with user code. They now live in the .compat world -
304
+
The old generic theme classes have been retired to avoid clashes with user code. They now live in the .compat world -
305
305
if you want to use them, you should load them separately, like this:
306
306
307
307
```scss
308
-
@import"~nativescript-theme-core/core.compat";
309
-
@import"~nativescript-theme-core/blue.compat";
308
+
@import"~@nativescript/theme/core.compat";
309
+
@import"~@nativescript/theme/blue.compat";
310
310
```
311
311
312
312
There might be bugs with these in the beta, you might want to hold off upgrading if you want to use the old classes.
313
313
314
314
As of 2.0, the theme now utilizes a simplified BEM approach for the new element classes, that might be needed here or there.
315
-
For instance, the buttons need `.-primary` and `.-outline` modifiers, instead of the old `.btn-primary` and
316
-
`.btn-outline` classes. All element classes (which are not needed by default, except if you want to style a component
317
-
to look like another one) are namespaced, so for instance a button is `.nt-button`, an action bar is `.nt-action-bar` and a ListView is
315
+
For instance, the buttons need `.-primary` and `.-outline` modifiers, instead of the old `.btn-primary` and
316
+
`.btn-outline` classes. All element classes (which are not needed by default, except if you want to style a component
317
+
to look like another one) are namespaced, so for instance a button is `.nt-button`, an action bar is `.nt-action-bar` and a ListView is
318
318
`.nt-list-view`.
319
319
320
320
## Should I use sass or node-sass
@@ -333,13 +333,13 @@ Theme 2.0 is developed using SASS. The NPM package used was sass (formerly dart-
333
333
## Why Beta
334
334
335
335
* Firstly, we want to gather feedback from the community and create a theme that is useful and if possible - beautiful.
336
-
* Secondly, the theme needs the classes inside the core modules to work properly without loading additional JavaScript
336
+
* Secondly, the theme needs the classes inside the core modules to work properly without loading additional JavaScript
337
337
(this is now released with {N} 6.1).
338
-
* And thirdly - {N} core modules should have a way to propagate OS theme changes inside the app, so that it can act accordingly
338
+
* And thirdly - {N} core modules should have a way to propagate OS theme changes inside the app, so that it can act accordingly
339
339
(planned for {N} 6.2).
340
340
341
-
The theme is relatively stable, try the latest version [](https://www.npmjs.com/package/nativescript-theme-core)
342
-
and report if you notice problems.
341
+
The theme is relatively stable, try the latest version [](https://www.npmjs.com/package/@nativescript/theme)
342
+
and report if you notice problems.
343
343
344
344
## Screenshots
345
345
@@ -371,7 +371,7 @@ If you’d like to toggle the color scheme from light to dark, open the sidedraw
371
371
372
372
**IMPORTANT**: Always make sure you have run the demo app in iOS or Android to verify any changes as well as ensure the latest `css` has been built before doing the following:
373
373
374
-
* Bump version in `nativescript-theme-core.json`
374
+
* Bump version in `package.json`
375
375
* Adjust `nativescript-theme-core.md` if any changes to the published `README` are needed.
0 commit comments