Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adhara-theme

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adhara-theme

Boilerplate to render [Ant Design](https://ant.design/) components into [Storybook](https://storybook.js.org/), so you can easily edit the theme

  • 0.0.0-test1
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

Ant Design Theme Editor Build Status

Boilerplate to render Ant Design components into Storybook, so you can easily edit the theme

image

Pre-requisite

  1. Install required system dependencies
  1. Clone the repository
git clone https://github.com/minheq/antd-theme-editor.git
  1. Install package dependencies of the project
yarn

...and you are ready!

Usage

Run the command

yarn storybook

Visit localhost:6006 to view Storybook

Customizing theme

Editing antd default variables

There is ready src/antd-theme-override.less for editing antd default variables

Editing css antd classes

You can also edit css file src/style-override.css for overriding/editing styles of antd classes

Exporting

After you are done editing the variables and styles, export via this command

yarn export

The exported files will be found in dist directory, copy and use in your project

Updating stories

Stories are already created based on the antd repository. You can also update them by importing antd components via git submodules and running a script to create or update stories.

git submodule update --init --recursive // Adds antd submodule to the project
git submodule update --remote --rebase  // Update antd submodule if it is outdated
yarn create-stories                     // Creates the stories
yarn prettier                           // Run prettier code formatting on the created stories

The script runs the file scripts/createStoriesFromAntdDemos.js.

FAQs

Package last updated on 10 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc