Git Product home page Git Product logo

Comments (8)

KyleAMathews avatar KyleAMathews commented on May 25, 2024

That'd be amazing!

Yeah, this should totally be doable. Reuse the same options values but create React Native specific styles.

Is your thought that this would just auto-create a bunch of components wrapping the <Text> component? E.g. <H1>, <H2>, <Bold> etc.?

Haven't really dived deep into React Native so not 100% on styling conventions there but would love to support this.

from typography.js.

KyleAMathews avatar KyleAMathews commented on May 25, 2024

It'd be really amazing if there was a React Native Google Fonts plugin that'd auto-include fonts specified in the Typography.js theme.

from typography.js.

KyleAMathews avatar KyleAMathews commented on May 25, 2024

BTW, in-progress screenshot of design tools. Goal is to completely design typography in-browser and then export to JS module.

screen shot 2016-07-25 at 4 50 56 pm

from typography.js.

steida avatar steida commented on May 25, 2024

All we need for the React Native are constants and common vocabulary for https://github.com/este/este/blob/master/src/common/app/theme.js

Then the helper for fonts.

from typography.js.

steida avatar steida commented on May 25, 2024

Is your thought that this would just auto-create a bunch of components wrapping...

Not at all. https://twitter.com/estejs/status/757338696735653889 and https://twitter.com/estejs/status/757709752004710400

from typography.js.

KyleAMathews avatar KyleAMathews commented on May 25, 2024

Ok, universal components then 💃

For now perhaps you just need a este-specific wrapper around typography's toJSON function to pull out what you want — https://github.com/KyleAMathews/typography.js/blob/master/packages/typography/src/index.js#L66

So something like this?

import Typography from 'typography'
import funstonTheme from 'typography-theme-funston'

const typography = new Typography(funstonTheme)

export default esteTypographyWrapper(typography)

from typography.js.

steida avatar steida commented on May 25, 2024

Yeah, something like that. Will investigate soon. Thank you.

from typography.js.

fantapop avatar fantapop commented on May 25, 2024

any update on this?

from typography.js.

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.