Comments (8)
I am happy to send a PR if this is something that is of interest.
from react-native-style-tachyons.
Have you tried setting the color via cls
?
from react-native-style-tachyons.
from react-native-style-tachyons.
Curious. In the documentation it says that style
works (example: https://github.com/oblador/react-native-vector-icons#styling)
from react-native-style-tachyons.
@fab1an Thanks for pointing this out. I think I was misusing it somehow. Either way I think having the ability to get the colors and all their variants would be useful. What do you think?
from react-native-style-tachyons.
Which version of rnt are you using? Since 3.0
colors aren't generated or modified anymore, they are just passed through to react-native.
from react-native-style-tachyons.
I am using the latest version. I think not modifying the colors make sense given that it is so easy to manually add color variants.
What I was interested in is having access to the colors the same way we have for sizes:
import NativeTachyons, { colors , sizes } from 'react-native-style-tachyons';
Looking at old version of the library, it seems like that was the case before. Any reason it was removed?
from react-native-style-tachyons.
That was because old versions used the color
-library to provide a darkened and lightened variant of the base-colors, which could then be set using styles dark-green
. The export made it possible to use these variants elsewhere.
I decided to remove the capability, since there is no good default-value for the darkening/lightening. Some of the variants where just unusable (too bright or too dark). If you want dark-green now, you have to provide it yourself via the palette. You can still use the Color
library and are able fine-tune the setting of each variant.
I think using the Color
library directly is also the way to go if you want to have raw values for the colors. It's just not in the scope of RNT.
from react-native-style-tachyons.
Related Issues (20)
- bug: styles values are undefined on the first load HOT 9
- Bug: wrapped component can return null HOT 4
- Adding separate config for font rem HOT 15
- Line height is broken HOT 7
- Add Examples of Responsive Font Sizes HOT 1
- Component Loses Style After Second Render With Mobx HOT 1
- Get the Raw Config File Passed to Style Tachyons HOT 3
- How to change scales HOT 4
- Question: justify the text in Android HOT 1
- Can't override flexbox properties with defaults? HOT 2
- Upgrade to RN 0.56 HOT 5
- [feature] Provide option to not recurse the children HOT 2
- 'customStyles' documentation HOT 3
- FontWeight for custom font in Android HOT 2
- Can this wrap an entire React Native project? HOT 2
- is it possible to add typescript types file? as you know almost everyone now refactored to use typescript HOT 2
- is this still in active development? HOT 3
- Readme contains reference to tachyons colours HOT 1
- tc no longer valid HOT 1
- Security Updates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-style-tachyons.