Skip to content

toshusai/spectrum-vue

Repository files navigation

spectrum-vue

npm version Types License: MIT

UI Components for Vue based on Adobe Spectrum (spectrum-css)

Document & Demo

⚠️ This project is work in progress. Not a stable version. May make breaking changes.

Install

yarn add @toshusai/spectrum-vue

Register Components to global.

import * as components from "@toshusai/spectrum-vue"
import Vue from "vue"

Object.entries(components).forEach(([name, component]) => {
    Vue.component(name, component)
})

Add style.

import "@toshusai/spectrum-vue/dist/index.css"

Add global css.

  • @spectrum-css/vars/dist/spectrum-global.css
<html class="spectrum spectrum--medium spectrum--dark" dir="ltr">
    <body class="spectrum-Body"> </body>
</html>

Accordion βœ…
ActionBar 🚧
ActionButton βœ…
ActionGroup βœ…
ActionMenu βœ…
AssetFile βœ…
AssetFolder βœ…
AssetImage βœ…
AssetList 🚧
AutoComplete 🚧
Avatar βœ…
Badge βœ…
Breadcrumbs βœ…
BreadcrumbsItem βœ…
Button βœ…
ButtonGroup βœ…
Calendar 🚧
CalendarDate 🚧
Card 🚧
Checkbox βœ…
CoachMark 🚧
ColorArea 🚧
ColorLoupe 🚧
ColorSlider 🚧
ColorWheel 🚧
Combobox 🚧
ContextMenu 🚧
DatePicker 🚧
Dial 🚧
Dialog βœ…
Divider βœ…
DropIndicator 🚧
Dropzone βœ…
FieldGroup βœ…
FieldLabel βœ…
Form βœ…
FormItem βœ…
HelpText βœ…
HintTextfield 🚧
Icon βœ…
InlineAlert βœ…
ItemListItem 🚧
Link βœ…
LogicButton βœ…
Menu βœ…
MenuDivider βœ…
MenuItem βœ…
MenuItemHeader βœ…
Meter βœ…
Modal βœ…
PaginationButton βœ…
Picker βœ…
PickerButton βœ…
Popover 🚧
ProgressBar βœ…
ProgressCircle βœ…
QuickAction βœ…
Radio βœ…
Sidenav 🚧
Slider βœ…
SliderTextfield βœ…
SplitView βœ…
SplitViewPane βœ…
SplitViewSplitter βœ…
Table βœ…
Tabs 🚧
Tag βœ…
TextArea βœ…
Textfield βœ…
Toast βœ…
TreeItem 🚧
TreeView 🚧
TreeViewItem 🚧

License

MIT

Development

Serve documents site. http://localhost:10000/spectrum-vue

cd docs
npm install
npm run dev

Build and replace dev docs node_modules.

npm install
npm run build && rsync dist docs/node_modules/@toshusai/spectrum-vue

Generate docs. Check scripts/README.md

cd scripts
node generateTemplate.js