Giter Site home page Giter Site logo

styleguide's Introduction

@expo/styleguide-*

A collection of packages used to share styles and icons across Expo websites and projects.

Get started

  1. Install dependencies with

    yarn
  2. Configure styleguide-icons. Read packages/styleguide-icons/README.md to set up your credentials (Expo staff only) to generate icons.

  3. Build the packages with

    yarn build

    It can take several minutes to build the icons package.

  4. Develop with

    yarn dev

styleguide's People

Contributors

ajsmth avatar amandeepmittal avatar bycedric avatar fiberjw avatar jonsamp avatar simek avatar tchayen avatar wschurman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

styleguide's Issues

Investigate a better way to publish these packages

I converted the repo to use changesets. This library should work in theory but there are a few issues:

  • I have to run yarn create:release, which creates a changeset file with the proposed changes. (not an issue)
  • Then I have to run yarn version, which incorrectly adds a version to the base repo's package.json. I've tried ignoring it in the changesets config. I've also looked at other repos with changesets and they don't seem to have this issue. Once I add a random (unused git tag) number, then it will correctly version the other two packages (styleguide and styleguide-native).
  • Finally, I have to run a command like yarn publish:patch. I'm not entirely sure we need this command. (sort of an issue, but more user error than an issue with changesets)

Ideally, I'd like to run one command yarn publish:patch or similar to version all packages and publish them, like we used to do with lerna. We could bring back lerna just for publishing. There might also be another solution. This issue is to investigate what options there are to see what will work for us.

Export Theme type from styleguide-native

When using styleguide-native, it's helpful to have a type for the theme object exported. Create that type and export it alongside the other imports for that package.

Centralize colors into a common package that other packages reference

We export colors in styleguide and styleguide-native. Each are manually configured. When we want to add a new theme color, there will be multiple places in multiple packages to update. Instead, we could make a new package, styleguide-colors, and have it export all color values needed. Then styleguide and styleguide-native can consume the colors and create the color objects they need when built.

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.