All Projects → gilbarbara → styled-minimal

gilbarbara / styled-minimal

Licence: MIT license
Minimal UI theme with styled-components

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to styled-minimal

Ui
🦚 UI kit for decentralized apps
Stars: ✭ 236 (+1211.11%)
Mutual labels:  styled-components, ui-kit
Sugui Design System
A design system template for the SugUI components library based on styleguidist
Stars: ✭ 17 (-5.56%)
Mutual labels:  styled-components, ui-kit
React95
🌈🕹 Refreshed Windows 95 style UI components for your React app
Stars: ✭ 4,877 (+26994.44%)
Mutual labels:  styled-components, ui-kit
sugui
UI Components library based on React, Styled Components and React Testing Library
Stars: ✭ 17 (-5.56%)
Mutual labels:  styled-components, ui-kit
babel-plugin-object-styles-to-template
Babel plugin to transpile object styles to template literal
Stars: ✭ 33 (+83.33%)
Mutual labels:  styled-components
react-functional-select
Micro-sized & micro-optimized select component for React.js
Stars: ✭ 165 (+816.67%)
Mutual labels:  styled-components
tail-kit
React UI kit built using tailwindcss
Stars: ✭ 49 (+172.22%)
Mutual labels:  ui-kit
Madara
✍️ A way for people to manage their tasks.
Stars: ✭ 17 (-5.56%)
Mutual labels:  styled-components
coincharts
Cryptocurrency Price Chart (GDAX)
Stars: ✭ 75 (+316.67%)
Mutual labels:  styled-components
react-2048
A React implementation of 2048 game built with typescript and styled-components
Stars: ✭ 66 (+266.67%)
Mutual labels:  styled-components
Styled-Responsive-Media-Queries
Responsive Media Queries for Emotion styled or styled-components — Standard size from Chrome DevTools.
Stars: ✭ 33 (+83.33%)
Mutual labels:  styled-components
YASCC
Yet Another SoundCloud Client
Stars: ✭ 30 (+66.67%)
Mutual labels:  styled-components
blue-collar-rocket
I built this as a capstone project of our web development boot camp. Blue Collar Rocket is an app to streamline processes in craftsmanship.
Stars: ✭ 13 (-27.78%)
Mutual labels:  styled-components
stylelint-config-styled-components
The shareable stylelint config for stylelint-processor-styled-components
Stars: ✭ 66 (+266.67%)
Mutual labels:  styled-components
MovieCards
React App that uses TMDb API to display movie data. Try it out! ->
Stars: ✭ 38 (+111.11%)
Mutual labels:  styled-components
react-toolbox-airbnb
An Airbnb DatePicker implementation using React Toolbox Core and Styled Components 💅
Stars: ✭ 40 (+122.22%)
Mutual labels:  styled-components
SAAS-Starter-Kit-Pro
🚀A boilerplate for building Software-as-Service (SAAS) apps with Reactjs, and Nodejs
Stars: ✭ 313 (+1638.89%)
Mutual labels:  styled-components
chat
💬 A React single page chat application (SPA), implementing Socket.io.
Stars: ✭ 98 (+444.44%)
Mutual labels:  styled-components
Noisekun
🎧 Web page made with Next.js and Typescript, for listen combinations of sounds for relaxing or getting more productive on tasks.
Stars: ✭ 17 (-5.56%)
Mutual labels:  styled-components
aspnet-core-react-redux-playground-template
SPA template built with ASP.NET Core 6.0 + React + Redux + TypeScript + Hot Module Replacement (HMR)
Stars: ✭ 78 (+333.33%)
Mutual labels:  styled-components

styled-minimal

Build Status Dependencies Maintainability Test Coverage

Minimal UI theme with styled-components, styled-system and polished.

Demo

Storybook: https://gilbarbara.github.io/styled-minimal/
Sandbox: https://k958nr9lno.codesandbox.io/

Setup

npm i styled-minimal styled-components

Warning: styled-minimal is intended to be used with styled-components v4. Some features may not work with older versions.

import { Box, Button, Container, Flex, Heading } from 'styled-minimal';

const MyComponent = () => {
  return (
    <Container>
      <Flex>
        <Heading>Hello</Heading>
        <Box mx="auto" />
        <Button>Click Me</Button>
      </Flex>
    </Container>
  );
};

Theming

Wrap your app in a ThemeProvider with a theme object.

All components have style-system css props, like display, fontSize and much more that are also responsive. For more information on these props, read styled-system API docs.

import { ThemeProvider } from 'styled-components';
import { Container } from 'styled-minimal';

const theme = {
  button: {
    borderRadius: {
      xs: '2px',
      sm: '3px',
      md: '4px',
      lg: '6px',
      xl: '8px',
    },
  },
  space: [0, 4, 8, 12, 16, 24, 32, 64, 128],
  breakpoints: {
    xs: 0,
    ix: 400,
    md: 768,
    lg: 1024,
    xl: 1360,
    xxl: 1920,
  },
  fontSizes: [12, 14, 16, 18, 22, 26, 32, 48],
};

const MyComponent = () => {
  return (
    <ThemeProvider theme={theme}>
      <Container display="flex">...</Container>
    </ThemeProvider>
  );
};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].