GithubHelp home page GithubHelp logo

ocean-ds / ocean-tokens Goto Github PK

View Code? Open in Web Editor NEW
7.0 21.0 2.0 1.59 MB

Ocean DS Design Tokens

Home Page: https://ocean-ds.github.io/ocean-tokens

License: GNU General Public License v3.0

JavaScript 82.69% CSS 16.39% Shell 0.91%
design-system design-tokens style-dictionary

ocean-tokens's Introduction

Ocean Tokens

Actions Status Sonarcloud Status GitHub License GitHub last commit Dependabot Prettier code style Semantic release Conventional Commits Conventional Commits Discord Server

This project powered by Theo provides design tokens to the Ocean design system.

Design tokens are the visual design atoms of the design system β€” specifically, they are named entities that store visual design attributes. We use them in place of hard-coded values (such as hex values for color or pixel values for spacing) in order to maintain a scalable and consistent visual system for UI development – Salesforce UX

Installation

yarn add @useblu/ocean-tokens

or

npm i @useblu/ocean-tokens

Usage

Javascript

import styled from 'styled-components';
import {
  fontFamilyHighlight,
  fontSizeLg,
  fontWeightExtrabold,
  lineHeightMedium,
  colorInterfaceLightPure,
} from '@useblu/ocean-tokens/web/tokens';

export const Heading1 = styled.h1`
  font-family: ${fontFamilyHighlight};
  font-size: ${fontSizeLg};
  font-weight: ${fontWeightExtrabold};
  line-height: ${lineHeightMedium};
  color: ${colorInterfaceLightPure};
`;

Sass

@import '~@useblu/ocean-tokens/web/tokens.scss';

.h1 {
  font-family: $font-family-highlight;
  font-size: $font-size-lg;
  font-weight: $font-weight-extrabold;
  line-height: $line-height-medium;
  color: $color-interface-light-pure;
}

Versioning

This package uses (Semantic Release)[https://github.com/semantic-release/semantic-release] for versioning and distributing to NPM. It analyses commits since last version to generate or not a new version. Use the follow commit prefixes to bump versions:

fix: Generates patch versions feat: Generates minor versions BREAKING CHANGES: Generate major versions

Other prefix commits (like chore:) will be ignored!

Contributing

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of this project! πŸ’™ Read below to learn how you can take part of it.

Code of Conduct

We adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.

Good First Issues

To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started.

Join our community

Join our discord server to get the latest updates, chat with other Ocean enthusiasts, and see what's happening in the community!

License

All packages are licensed under the terms of the GPL-3.0 License.

ocean-tokens's People

Contributors

alexgomesblu avatar danimuller20 avatar dependabot-preview[bot] avatar dependabot[bot] avatar eltongarbin avatar felipefln avatar gabrielfn avatar joaopedrorc avatar juaopedrosilva avatar julianasouza-s avatar lpeil avatar lthomaz avatar saulosilva avatar semantic-release-bot avatar snyk-bot avatar uilianm avatar vromeiro avatar willoliveira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

Forkers

lpeil lthomaz

ocean-tokens's Issues

Change color token name

Change colors name from Status Neutral to Status Warning.
$color-status-neutral-pure -> $color-status-warning-pure
$color-status-neutral-up -> $color-status-warning-up
$color-status-neutral-down -> $color-status-warning-down
$color-status-neutral-deep -> $color-status-warning-deep

Discussão - Modelo de versionamento e organização de pastas das plataformas (Web, iOS, Android)

Motivation

We need to provide a model for structuring the code and versioning that portrays the reality of having 3 types of outputs from a single project. Web, Android and iOS.

Current scenario

The current model only provides cases for the generation of Web tokens, but we still have the Android and iOS projects to be covered.

In conversation with Elton, we raised some possible points where improvements / adaptations would be necessary, such as CI configurations and versioning rules, so that we can work in a healthy way with the 3 platforms in harmony.

Possible solutions

Versioning

We talked about something that ultimately produces a result like:

web-v1.0.0
web-v1.1.0
web-v1.2.0

android-v1.0.0
android-v1.1.0
android-v1.2.0

ios-v1.0.0
ios-v1.1.0
ios-v1.2.0

The point is that this is only a part, as we have to define the correct version increment rule for each case.

To help solve the issue of the increment rule, we also thought about maybe changing the project's folder structure, where each platform would end up being independent to do its versioning.

platforms /
+ - ios
    + - formaters /
    + - package.json
+ - android
    + - formaters /
    + - package.json
+ - web
    + - formaters /
    + - package.json
src /
+ - tokens.yml
package.json

To help organize the solution above, Elton even suggested that we take a look at https://github.com/lerna/lerna to see if it works.

We would like to open this thread to make a decision on how we are going to proceed.

Enable eslint for project quality

Is your feature request related to a problem? Please describe.
We don't have a code style guideline configured yet!

Describe the solution you'd like
We decided to adopt airbnb-core as baseline.

Additional context
Run yarn eslint during development, or catch offenses in Github PR.

2023 Tokens Update

πŸ”„ - Update value
πŸ†• - Add token

COLORS

Interface Light
colorInterfaceLightUp: #F7F9FF -> #F3F5FEπŸ”„
colorInterfaceLightDown: #EBECF5 -> #E0E2EEπŸ”„
colorInterfaceLightDeep: #D8DAE8 -> #CED1E1πŸ”„

Interface Dark
colorInterfaceDarkUp: #B6B9CC -> #AAADC0πŸ”„


TYPOGRAPHY

Kill Avenir πŸ”ͺ πŸ’€
All fonts will be Nunito Sans. ⚠️


LINE HEIGHTS

lineHeightMedium: 124%
lineHeightLoose: 132% πŸ†•


SPACINGS

spacingStackXxsExtra: 12px πŸ†•


BORDER RADIUS

borderRadiusTiny: 4px πŸ†•
borderRadiusSm: 8px πŸ”„
borderRadiusMd: 12px πŸ”„


SHADOW
shadowLevel2 -> shadowLevel2Bottom πŸ”„
shadowLevel2Top: box-shadow: 0px **-8px** 16px 0px rgba(12, 13, 20, 0.08); (it can be applied to the mobile versions of Modals)

.

Status Color Adjust

Describe the solution you'd like
We did changes in the colors below (note: the pure color didn't change)
image

In this image, DEEP colors were old DOWN (with HEX adjust), and the DOWN colors in the image above are new.
The UP colors HEX was adjusted too.

The automated release is failing 🚨

🚨 The automated release from the next branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the next branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Missing package.json file.

A package.json file at the root of your project is required to release on npm.

Please follow the npm guideline to create a valid package.json file.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Add tokens for animation durations

Is your feature request related to a problem? Please describe.
In different places, the same animation has a different duration because we don't have a common pattern between platforms.

Describe the solution you'd like
I think we could create tokens that represent a variety of time duration to be used in animations.

Describe alternatives you've considered

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.