Giter Site home page Giter Site logo

Comments (8)

ecstasy2 avatar ecstasy2 commented on May 2, 2024

I am happy to send a PR if this is something that is of interest.

from react-native-style-tachyons.

fab1an avatar fab1an commented on May 2, 2024

Have you tried setting the color via cls?

from react-native-style-tachyons.

ecstasy2 avatar ecstasy2 commented on May 2, 2024

from react-native-style-tachyons.

fab1an avatar fab1an commented on May 2, 2024

Curious. In the documentation it says that style works (example: https://github.com/oblador/react-native-vector-icons#styling)

from react-native-style-tachyons.

ecstasy2 avatar ecstasy2 commented on May 2, 2024

@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.

fab1an avatar fab1an commented on May 2, 2024

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.

ecstasy2 avatar ecstasy2 commented on May 2, 2024

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.

fab1an avatar fab1an commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.