INNER CODE UNIT · TypeScript

rgbString

tachyons-css/react-native-style-tachyons · src/index.ts:105

                const rgbString = new Color(val).alpha(i / 100)
                    .rgb()
                    .string()

                styleSheet[`bg-${name}-${i}`] = { backgroundColor: rgbString }
                styleSheet[`${name}-${i}`] = { color: rgbString }
                styleSheet[`b--${name}-${i}`] = { borderColor: rgbString }
            }
        })

        /* Font-families */
        _.forOwn(options.fonts, (val, key) => {
            styleSheet[`ff-${key}`] = { fontFamily: val }
        })

        _.assign(styleSheet, options.customStyles)

        _.assign(NativeTachyons.sizes, hyphensToUnderscores(sizes))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…