├── docs ├── .vuepress │ ├── .gitignore │ ├── theme │ │ ├── index.js │ │ ├── styles │ │ │ └── index.styl │ │ └── layouts │ │ │ ├── Panel.vue │ │ │ ├── 404.vue │ │ │ ├── Engineering.vue │ │ │ ├── Layout.vue │ │ │ └── LcarscomDB.vue │ ├── components │ │ ├── SourceCode.vue │ │ ├── examples │ │ │ ├── stardate-component-doc.vue │ │ │ ├── chrome-buttons-doc.vue │ │ │ ├── hr-element-doc.vue │ │ │ ├── themes.vue │ │ │ └── chrome-bar-doc.vue │ │ ├── Demo.vue │ │ ├── AccessDenied.vue │ │ ├── ColorDisplay.vue │ │ ├── ColorPalette.vue │ │ └── Calculator.vue │ ├── public │ │ └── assets │ │ │ └── fonts │ │ │ └── LCARSGTJ3.ttf │ ├── enhanceApp.js │ └── config.js ├── guide.md ├── examples │ ├── panel.md │ ├── 403.md │ ├── calculator.md │ └── lcarscom │ │ └── README.md ├── themes.md ├── components │ ├── stardate-component.md │ └── README.md ├── chrome.md ├── odyssey-colors.md ├── about.md ├── roadmap.md ├── README.md ├── colors.md ├── elements.md └── layouts.md ├── src ├── assets │ ├── logo.png │ ├── elbow.png │ ├── sources.md │ ├── milky-way-2695569_1920.jpg │ ├── sass │ │ ├── layouts │ │ │ ├── _all.scss │ │ │ ├── _page.scss │ │ │ ├── _general.scss │ │ │ ├── _slide.scss │ │ │ ├── _analytical.scss │ │ │ └── _grid.scss │ │ ├── _util.scss │ │ ├── lcars.scss │ │ ├── _variables.scss │ │ ├── _reset.scss │ │ ├── _elements.scss │ │ ├── _font.scss │ │ ├── _animation.scss │ │ ├── _colors.scss │ │ ├── _features.scss │ │ ├── _mixins.scss │ │ ├── _button.scss │ │ ├── _colordef.scss │ │ ├── _layout.scss │ │ ├── _colorref.scss │ │ ├── _chrome.scss │ │ ├── _themes.scss │ │ └── _colorpalettes.scss │ └── elbow.svg ├── components │ ├── layouts │ │ ├── index.js │ │ └── GridLayout.vue │ ├── widgets │ │ ├── index.js │ │ ├── Calculator.vue │ │ ├── Clock.vue │ │ └── Stardate.vue │ ├── buttons │ │ ├── index.js │ │ ├── Radio.vue │ │ ├── Check.vue │ │ └── Toggle.vue │ ├── index.js │ ├── Example.vue │ ├── Manifesto.vue │ └── examples │ │ └── Game2048Tile.vue ├── index.js ├── themes.js └── color.js ├── babel.config.js ├── NEWS.md ├── vue.config.js ├── .gitignore ├── .github └── workflows │ ├── test-build.yaml │ └── deploy-to-gh-pages.yaml ├── package.json ├── README.md └── LICENSE /docs/.vuepress/.gitignore: -------------------------------------------------------------------------------- 1 | .temp 2 | dist 3 | -------------------------------------------------------------------------------- /docs/guide.md: -------------------------------------------------------------------------------- 1 | # Getting Started 2 | 3 | ... 4 | -------------------------------------------------------------------------------- /docs/examples/panel.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: Engineering 3 | --- -------------------------------------------------------------------------------- /docs/.vuepress/theme/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | } -------------------------------------------------------------------------------- /docs/themes.md: -------------------------------------------------------------------------------- 1 | # Themes 2 | 3 | -------------------------------------------------------------------------------- /docs/examples/403.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: Panel 3 | --- 4 | 5 | -------------------------------------------------------------------------------- /docs/examples/calculator.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: Panel 3 | --- 4 | 5 | -------------------------------------------------------------------------------- /docs/examples/lcarscom/README.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: LcarscomDB 3 | --- 4 | 5 | Hello World! -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bombcheck/htmlcars/main/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/elbow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bombcheck/htmlcars/main/src/assets/elbow.png -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/components/layouts/index.js: -------------------------------------------------------------------------------- 1 | import GridLayout from './GridLayout.vue'; 2 | 3 | export { GridLayout } -------------------------------------------------------------------------------- /docs/.vuepress/components/SourceCode.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/assets/sources.md: -------------------------------------------------------------------------------- 1 | # Sources 2 | 3 | Galaxy: 4 | https://pixabay.com/en/milky-way-starry-sky-night-sky-star-2695569/ -------------------------------------------------------------------------------- /src/assets/milky-way-2695569_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bombcheck/htmlcars/main/src/assets/milky-way-2695569_1920.jpg -------------------------------------------------------------------------------- /src/assets/sass/layouts/_all.scss: -------------------------------------------------------------------------------- 1 | @import 'general'; 2 | @import 'grid'; 3 | @import 'page'; 4 | @import 'slide'; 5 | @import 'analytical'; 6 | -------------------------------------------------------------------------------- /docs/.vuepress/public/assets/fonts/LCARSGTJ3.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bombcheck/htmlcars/main/docs/.vuepress/public/assets/fonts/LCARSGTJ3.ttf -------------------------------------------------------------------------------- /docs/.vuepress/components/examples/stardate-component-doc.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /docs/.vuepress/theme/styles/index.styl: -------------------------------------------------------------------------------- 1 | /* http://www.gtjlcars.de/LCARSindex/LCARSFONTS.htm */ 2 | @font-face 3 | font-family LCARSGTJ3 4 | src url(/htmlcars/assets/fonts/LCARSGTJ3.ttf) -------------------------------------------------------------------------------- /src/components/widgets/index.js: -------------------------------------------------------------------------------- 1 | import Clock from './Clock.vue'; 2 | import Stardate from './Stardate.vue'; 3 | import Calculator from './Calculator.vue'; 4 | 5 | export { Clock, Stardate, Calculator }; -------------------------------------------------------------------------------- /src/components/buttons/index.js: -------------------------------------------------------------------------------- 1 | import CheckButton from './Check.vue'; 2 | import RadioButton from './Radio.vue'; 3 | import ToggleButton from './Toggle.vue'; 4 | 5 | export { CheckButton, RadioButton, ToggleButton } -------------------------------------------------------------------------------- /docs/.vuepress/components/Demo.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /docs/.vuepress/enhanceApp.js: -------------------------------------------------------------------------------- 1 | import VueHighlightJS from 'vue-highlightjs'; 2 | import ComponentLibrary from './../../src/index.js' 3 | import './../../src/assets/sass/lcars.scss'; 4 | 5 | export default ({ Vue, options, router, siteData }) => { 6 | Vue.use(ComponentLibrary); 7 | Vue.use(VueHighlightJS); 8 | } 9 | -------------------------------------------------------------------------------- /NEWS.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 2020-12-09 4 | 5 | - Move documentation to a `vuepress` docs folder with a custom theme 6 | 7 | ## 2019-06-24 8 | 9 | - Stop using `.lcars-chrome-component` for borders 10 | - Added `%lcars-chrome-heading` 11 | - Added `$lcars-gap` with default `0.3rem` 12 | - Rename `.lcars-block` to `.d-block` 13 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | publicPath: '/htmlcars/', 3 | outputDir: 'dist', 4 | assetsDir: 'assets', 5 | css: { 6 | loaderOptions: { 7 | sass: { 8 | data: ` 9 | @import "@/assets/sass/_variables.scss"; 10 | @import "@/assets/sass/_mixins.scss";` 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | .npmrc 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | 15 | # Editor directories and files 16 | .idea 17 | .vscode 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw* 23 | 24 | # Python 25 | venv 26 | -------------------------------------------------------------------------------- /docs/.vuepress/components/AccessDenied.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /docs/components/stardate-component.md: -------------------------------------------------------------------------------- 1 | # standard-component 2 | 3 | Wow! This component is awesome. 4 | 5 | ## Example 6 | 7 | 8 | 9 | ## Source Code 10 | 11 | 12 | <<< @/src/components/widgets/Stardate.vue 13 | 14 | 15 | ## slots 16 | 17 | ... 18 | 19 | ## props 20 | 21 | ... 22 | -------------------------------------------------------------------------------- /src/components/buttons/Radio.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 18 | -------------------------------------------------------------------------------- /src/components/index.js: -------------------------------------------------------------------------------- 1 | import { CheckButton, RadioButton, ToggleButton } from './buttons'; 2 | import { GridLayout } from './layouts'; 3 | import { Clock, Stardate, Calculator } from './widgets'; 4 | import Example from './Example.vue'; 5 | import Manifesto from './Manifesto.vue'; 6 | 7 | export { CheckButton, RadioButton, ToggleButton, Example, Manifesto, GridLayout, Clock, Stardate, Calculator }; -------------------------------------------------------------------------------- /docs/.vuepress/components/examples/chrome-buttons-doc.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/buttons/Check.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 20 | -------------------------------------------------------------------------------- /.github/workflows/test-build.yaml: -------------------------------------------------------------------------------- 1 | name: Deploy to GitHub pages 2 | on: 3 | push: 4 | branches-ignore: [ main ] 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - uses: actions/checkout@v2 11 | 12 | - name: Generate static files 13 | uses: actions/setup-node@v1 14 | with: 15 | node-version: '12.x' 16 | - run: yarn install 17 | - run: yarn run docs:build -------------------------------------------------------------------------------- /src/components/buttons/Toggle.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 21 | -------------------------------------------------------------------------------- /docs/chrome.md: -------------------------------------------------------------------------------- 1 | # Chrome 2 | 3 | ## Components 4 | 5 | The LCARS interface consists of various buttons, toggles, sliders, 6 | captions and numbers. In this framework we call these `chrome-component`s. 7 | They represent an atomic unit of interaction with the system. 8 | 9 | 10 | 11 | ## Bars 12 | 13 | While chrome components are usually well behaved on their own, they work 14 | best when they are put together into a bar. If a component has zero 15 | dimensions, the chrome bar is 16 | 17 | -------------------------------------------------------------------------------- /src/assets/sass/_util.scss: -------------------------------------------------------------------------------- 1 | .text-left { text-align: left !important; } 2 | .text-right { text-align: right !important; } 3 | .text-center { text-align: center !important; } 4 | .text-justify { text-align: justify !important; } 5 | 6 | .mb-1 { margin-bottom: 1rem !important; } 7 | .pb-1 { padding-bottom: 1rem !important; } 8 | .pr-1 { padding-right: 1rem !important; } 9 | .hidden { visibility: hidden !important; } 10 | 11 | .d-inline-block { display: inline-block; } 12 | .d-block { display: block; } 13 | 14 | .p-relative { position: relative; } 15 | .p-absolute { position: absolute; } 16 | -------------------------------------------------------------------------------- /src/assets/sass/lcars.scss: -------------------------------------------------------------------------------- 1 | @import 'variables'; 2 | @import 'mixins'; 3 | @import 'themes'; 4 | @import 'colors'; 5 | @import 'font'; 6 | @import 'chrome'; 7 | @import 'layouts/all'; 8 | @import 'layout'; 9 | @import 'reset'; 10 | @import 'util'; 11 | @import 'button'; 12 | @import 'features'; 13 | @import 'animation'; 14 | @import 'elements'; 15 | 16 | .lcars-fixed 17 | { 18 | height: 100%; 19 | box-sizing: border-box; 20 | } 21 | 22 | /* Size definitions */ 23 | $lcars-large-size: 4em; 24 | $lcars-normal-size: 2em; 25 | $lcars-small-size: 1em; 26 | 27 | .lcars-body { 28 | @extend %lcars-body-ref; 29 | } -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import * as components from './components' 2 | import colors from './color' 3 | import themes from './themes'; 4 | 5 | import './assets/sass/lcars.scss'; 6 | 7 | const ComponentLibrary = { 8 | install(Vue) { 9 | // components 10 | for (const componentName in components) { 11 | const component = components[componentName] 12 | 13 | Vue.component(component.name, component) 14 | } 15 | }, 16 | colors: colors, 17 | themes: themes, 18 | } 19 | 20 | export default ComponentLibrary 21 | 22 | if (typeof window !== 'undefined' && window.Vue) { 23 | window.Vue.use(ComponentLibrary) 24 | } -------------------------------------------------------------------------------- /docs/odyssey-colors.md: -------------------------------------------------------------------------------- 1 | +---------+---------+---------+---------+---------+---------+ 2 | | | normal | power | docking | yellow | red | 3 | +=========+=========+=========+=========+=========+=========+ 4 | | offline | #4d4d4d | #4d4d4d | #4d4d4d | #4d4d4d | #4d4d4d | 5 | | dark-1 | #133d87 | #808080 | #0000cc | #664406 | #660000 | 6 | | frame | #2350b5 | #808080 | #0033ff | #996509 | #990000 | 7 | | light-1 | #335da7 | #808080 | #0066ff | #cc870c | #cc0000 | 8 | | light-2 | #4a72ca | #808080 | #4159ff | #ffa90f | #ff0000 | 9 | | active | #97c3e1 | #cccccc | #8d9bff | #ffd966 | #ff9191 | 10 | +---------+---------+---------+---------+---------+---------+ 11 | -------------------------------------------------------------------------------- /docs/.vuepress/components/examples/hr-element-doc.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | -------------------------------------------------------------------------------- /src/components/widgets/Calculator.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 35 | -------------------------------------------------------------------------------- /src/components/widgets/Clock.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 34 | -------------------------------------------------------------------------------- /docs/.vuepress/theme/layouts/Panel.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 29 | -------------------------------------------------------------------------------- /src/assets/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Import color definitions 2 | @import 'colordef'; 3 | @import 'colorpalettes'; 4 | @import 'colorref'; 5 | 6 | // Global color definitions 7 | $lcars-screen-bg: #000 !default; 8 | $lcars-screen-fg: #fff !default; 9 | 10 | // Global chrome definitions 11 | $lcars-chrome-bg: map-get($lcars-sdk-colors, chrome-bg); 12 | $lcars-chrome-fg: map-get($lcars-sdk-colors, chrome-fg); 13 | $lcars-chrome-bg-alert: #900; 14 | $lcars-chrome-fg-alert: #fff; 15 | 16 | // Global font definitions 17 | $lcars-title-font: LCARSGTJ3, Helvetica, sans-serif; 18 | $lcars-basic-font: Helvetica, sans-serif; 19 | 20 | // Global size definitions 21 | $lcars-gap: 0.3rem; 22 | $lcars-border-width: $lcars-gap; 23 | $lcars-edge-width: 0.4rem; 24 | $lcars-basic-border: $lcars-gap solid var(--lcars-screen-bg); 25 | $lcars-edge-border: $lcars-edge-width solid var(--lcars-screen-bg); 26 | $lcars-border-radius: 1rem; 27 | $lcars-body-padding: 1rem; 28 | -------------------------------------------------------------------------------- /src/assets/sass/layouts/_page.scss: -------------------------------------------------------------------------------- 1 | /* LCARS page */ 2 | $lcars-bar-height: 2rem; 3 | $lcars-knob-width: 2rem; 4 | 5 | $lcars-page-padding: $lcars-knob-width + $lcars-edge-width; 6 | $lcars-page-space: 0.5rem; 7 | $lcars-info-space: 1.1rem; 8 | 9 | .lcars-page 10 | { 11 | display: grid; 12 | grid-template-columns: 13 | [head] $lcars-page-padding 14 | [content-begin] auto [content-end] 15 | $lcars-page-padding [tail]; 16 | grid-template-rows: 17 | [head] min-content [bar-end] $lcars-info-space 18 | [content-begin] auto [content-end] 19 | $lcars-page-space [bar-start] min-content [tail]; 20 | 21 | & > .lcars-topbar { grid-area: head / head / bar-end / tail; } 22 | & > .lcars-bottombar { grid-area: bar-start / head / tail / tail; } 23 | & > .lcars-infoline 24 | { 25 | grid-area: bar-end / content-begin / content-begin / content-end; 26 | text-align: right; 27 | font-size: 10pt; 28 | font-weight: bold; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /docs/about.md: -------------------------------------------------------------------------------- 1 | # Imprint 2 | 3 | This Webpage and HTML LCARS Library are created by 4 | [@Xiphoseer](https://twitter.com/Xiphoseer"), based on the 5 | original design by Michael Okuda from Star Trek. It is heavily influenced 6 | in theme by sites such as [GTJLCARS](https://gtjlcars.de) or 7 | [lcarscom.net](http://web.archive.org/web/20190718150043/http://www.lcarscom.net/databank.htm), but completely 8 | independent in terms of source code. 9 | 10 | The commercial rights to the LCARS system are (as far as I know) held by 11 | CBS, as part of other StarTrek asset rights. This means that, while this 12 | source code will be released under a MIT license, you are likely not allowed 13 | to use this libray in a commercial setting. 14 | 15 | The font used for headings is the LCARSGTJ3 font available 16 | [here](http://gtjlcars.de/LCARSindex/LCARSFONTS.htm). It is 17 | provided as 'freeware' under a custom license, which states the font file 18 | may not be renamed, modified or sold. 19 | -------------------------------------------------------------------------------- /.github/workflows/deploy-to-gh-pages.yaml: -------------------------------------------------------------------------------- 1 | name: Deploy to GitHub pages 2 | on: 3 | push: 4 | branches: [ main ] 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - uses: actions/checkout@v2 11 | 12 | - name: Generate static files 13 | uses: actions/setup-node@v1 14 | with: 15 | node-version: '12.x' 16 | - run: yarn install 17 | - run: yarn run docs:build 18 | 19 | - name: Init new repo in dist folder and commit generated files 20 | run: | 21 | cd docs/.vuepress/dist 22 | git init 23 | git add -A 24 | git config --local user.email "xiphoseer@mailbox.org" 25 | git config --local user.name "GitHub Actions (Xiphoseer)" 26 | git commit -m 'deploy' 27 | 28 | - name: Force push to destination branch 29 | uses: ad-m/github-push-action@v0.5.0 30 | with: 31 | github_token: ${{ secrets.GITHUB_TOKEN }} 32 | branch: gh-pages 33 | force: true 34 | directory: ./docs/.vuepress/dist 35 | -------------------------------------------------------------------------------- /src/assets/sass/_reset.scss: -------------------------------------------------------------------------------- 1 | html 2 | { 3 | font-size: 12pt; 4 | } 5 | 6 | iframe 7 | { 8 | border: 0; 9 | } 10 | 11 | table td, table th 12 | { 13 | padding: 0.1rem 0.3rem; 14 | } 15 | 16 | table 17 | { 18 | border-spacing: 0.3rem; 19 | border: 1px solid white; 20 | margin-bottom: 1rem; 21 | } 22 | 23 | p code 24 | { 25 | color: var(--lcars-theme-secondary); 26 | } 27 | 28 | %heading 29 | { 30 | margin: 0 0 0.6em 0; 31 | font-weight: normal; 32 | } 33 | 34 | h1 { @extend %heading; font-size: 200%; } 35 | h2 { @extend %heading; font-size: 150%; } 36 | h3 { @extend %heading; font-size: 125%; } 37 | h4 { @extend %heading; font-size: 112.5%; } 38 | h5 { @extend %heading; font-size: 100%; } 39 | h6 { @extend %heading; font-size: 87.5%; } 40 | 41 | button::-moz-focus-inner, 42 | input[type="reset"]::-moz-focus-inner, 43 | input[type="button"]::-moz-focus-inner, 44 | input[type="submit"]::-moz-focus-inner, 45 | input[type="file"] > input[type="button"]::-moz-focus-inner 46 | { 47 | border: 1px dotted transparent; 48 | padding: 0 0; 49 | } 50 | -------------------------------------------------------------------------------- /src/assets/sass/layouts/_general.scss: -------------------------------------------------------------------------------- 1 | .lcars-sidebar { grid-area: sidebar; } 2 | .lcars-topbar { grid-area: topbar; } 3 | .lcars-bottombar { grid-area: bottombar; } 4 | .lcars-content { grid-area: content; } 5 | .lcars-altbar { grid-area: altbar; } 6 | 7 | .lcars-grid-content { grid-area: content-begin / content-begin / content-end / content-end; } 8 | 9 | .lcars-scrollable 10 | { 11 | overflow-y: auto; 12 | padding-right: 1rem; 13 | } 14 | 15 | .lcars-topbar, .lcars-bottombar 16 | { 17 | & > * 18 | { 19 | &:not(.p-absolute):first-child, &.lcars-chrome-first { border-left: 0.3rem solid var(--lcars-screen-bg); } 20 | &:not(.p-absolute):last-child, &.lcars-chrome-last { border-right: 0.3rem solid var(--lcars-screen-bg); } 21 | } 22 | } 23 | 24 | .lcars-sidebar, .lcars-altbar 25 | { 26 | & > * 27 | { 28 | &:not(.p-absolute):first-child, &.lcars-chrome-first { border-top: 0.3rem solid var(--lcars-screen-bg); } 29 | &:not(.p-absolute):last-child, &.lcars-chrome-last { border-bottom: 0.3rem solid var(--lcars-screen-bg); } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /docs/.vuepress/components/examples/themes.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 33 | 34 | 43 | -------------------------------------------------------------------------------- /docs/.vuepress/theme/layouts/404.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 38 | -------------------------------------------------------------------------------- /src/components/widgets/Stardate.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 47 | -------------------------------------------------------------------------------- /src/components/Example.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 40 | 41 | 46 | -------------------------------------------------------------------------------- /src/assets/sass/_elements.scss: -------------------------------------------------------------------------------- 1 | hr 2 | { 3 | border-top: none; 4 | border-left: none; 5 | border-right: none; 6 | border-bottom: 0.2rem solid #FFF; 7 | } 8 | 9 | @each $name, $color in $lcars-colors { 10 | hr.lcars-color-#{$name} { border-bottom-color: $color; } 11 | blockquote.lcars-color-#{$name} { border-color: $color; } 12 | a.lcars-color-#{$name} { 13 | color: $color; 14 | &:hover { 15 | color: lighten($color, 10%); 16 | } 17 | } 18 | } 19 | 20 | pre 21 | { 22 | padding: 1rem; 23 | margin-top: 1rem; 24 | margin-bottom: 1rem; 25 | background-color: #222; 26 | } 27 | 28 | blockquote 29 | { 30 | font-family: LCARSGTJ3, Helvetica, sans-serif; 31 | font-size: 20pt; 32 | margin: 1rem 0; 33 | padding: 0.2rem 0.5rem 0 0.4rem; 34 | border-style: solid; 35 | border-color: #FFF; 36 | border-width: 0.2rem; 37 | 38 | &.leftline 39 | { 40 | padding-top: 0.1rem; 41 | border-left-width: 0.5rem; 42 | border-top-width: 0; 43 | border-right-width: 0; 44 | border-bottom-width: 0; 45 | } 46 | 47 | &.underline 48 | { 49 | padding-left: 0rem; 50 | border-left-width: 0; 51 | border-top-width: 0; 52 | border-right-width: 0; 53 | } 54 | } 55 | 56 | dl dt 57 | { 58 | font-family: LCARSGTJ3, Helvetica, sans-serif; 59 | font-size: 16pt; 60 | } 61 | 62 | table { 63 | width: 100%; 64 | box-sizing: border-box; 65 | } 66 | -------------------------------------------------------------------------------- /src/assets/sass/_font.scss: -------------------------------------------------------------------------------- 1 | .lcars-font 2 | { 3 | font-family: LCARSGTJ3, Helvetica, sans-serif; 4 | font-size: 12pt; 5 | } 6 | 7 | h1, h2, h3, h4, h5, h6 8 | { 9 | border-bottom: 1px dotted #eee; 10 | font-family: LCARSGTJ3, Helvetica, sans-serif; 11 | } 12 | 13 | p, ul, ol 14 | { 15 | text-align: justify; 16 | 17 | a 18 | { 19 | text-decoration: none; 20 | color: var(--lcars-theme-link); 21 | font-weight: bold; 22 | 23 | &::before 24 | { 25 | content: "["; //"\2022" 26 | } 27 | 28 | &::after 29 | { 30 | content: "]"; //"\2022" 31 | } 32 | 33 | &:hover 34 | { 35 | text-decoration: underline; 36 | } 37 | } 38 | } 39 | 40 | .lcars-message 41 | { 42 | text-align: center; 43 | 44 | %message-heading 45 | { 46 | border-bottom: none; 47 | margin-bottom: 0; 48 | line-height: 0.9em; 49 | overflow-x: auto; 50 | overflow-y: hidden; 51 | } 52 | 53 | h1 { @extend %message-heading; font-size: 1500%; } 54 | h2 { @extend %message-heading; font-size: 1000%; } 55 | h3 { @extend %message-heading; font-size: 750%; } 56 | h4 { @extend %message-heading; font-size: 500%; } 57 | h5 { @extend %message-heading; font-size: 400%; } 58 | h6 { @extend %message-heading; font-size: 250%; } 59 | } 60 | 61 | .lcars-img-header 62 | { 63 | border-bottom: none; 64 | color: map-get($lcars-colors, or); 65 | } 66 | -------------------------------------------------------------------------------- /docs/roadmap.md: -------------------------------------------------------------------------------- 1 | # Roadmap & Manifesto 2 | 3 | HTMLCARS is continually evolving. This page lists some of the ideas and 4 | planned features for this library. 5 | 6 | ## The LCARS Manifesto 7 | 8 | 9 | 10 | ## High-Level Goals 11 | 12 | * Implement a comprehensive library of components/widgets 13 | * Implement an algorithm that places widgets based on input and usage data 14 | * Adapt this into a proper ES Module / Vue library 15 | 16 | ## Components 17 | 18 | Components are the fundamental building block of an LCARS interface. They 19 | may be grouped together to form a single application, but can also be split 20 | apart to appear in a different part of the interface. 21 | 22 | Actions in particular can be created and moved around freely, depending on 23 | how frequently they are used. This is vital for a starship control, where 24 | some actions need to exist for different people on the bridge, composed 25 | into their usual task interface. 26 | 27 | Much like GTK+ Widgets and HTML elements, these components have a minimal 28 | and optimal size and aspect ratio. Based on these values, an algorithm or 29 | machine learning model places the components onto the available screen. 30 | 31 | * Clock 32 | * Stardate Display 33 | * Status Indicator 34 | * Terminal Emulator 35 | * Numpad 36 | * Keyboard 37 | * Action Group 38 | * Navigation Wheel 39 | * Picture Frame 40 | * Settings Panel 41 | -------------------------------------------------------------------------------- /src/assets/sass/_animation.scss: -------------------------------------------------------------------------------- 1 | @keyframes lcars-color-1 2 | { 3 | 0% {background-color: map-get($lcars-colors, pi);} 4 | 24% {background-color: map-get($lcars-colors, pi);} 5 | 25% {background-color: map-get($lcars-colors, lb);} 6 | 49% {background-color: map-get($lcars-colors, lb);} 7 | 50% {background-color: map-get($lcars-colors, rb);} 8 | 74% {background-color: map-get($lcars-colors, rb);} 9 | 75% {background-color: map-get($lcars-colors, or);} 10 | 100% {background-color: map-get($lcars-colors, or);} 11 | } 12 | 13 | @keyframes lcars-on-off 14 | { 15 | 0% {color: map-get($lcars-colors, or);} 16 | 49% {color: map-get($lcars-colors, or);} 17 | 50% {color: map-get($lcars-colors, ck);} 18 | 100% {color: map-get($lcars-colors, ck);} 19 | } 20 | 21 | %loop-animation 22 | { 23 | animation-iteration-count: infinite; 24 | } 25 | 26 | @mixin lcars-blink($duration) 27 | { 28 | @extend %loop-animation; 29 | animation-name: lcars-color-1; 30 | animation-duration: $duration; 31 | } 32 | 33 | .lcars-blink-3 { @include lcars-blink(3s); } 34 | .lcars-blink-4 { @include lcars-blink(4s); } 35 | .lcars-blink-5 { @include lcars-blink(5s); } 36 | .lcars-blink-6 { @include lcars-blink(6s); } 37 | .lcars-blink-7 { @include lcars-blink(7s); } 38 | 39 | .lcars-on-off 40 | { 41 | animation-iteration-count: infinite; 42 | animation-name: lcars-on-off; 43 | animation-duration: 3s; 44 | } 45 | -------------------------------------------------------------------------------- /src/components/Manifesto.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | -------------------------------------------------------------------------------- /src/assets/sass/layouts/_slide.scss: -------------------------------------------------------------------------------- 1 | .lcars-slide 2 | { 3 | display: grid; 4 | grid-template-rows: /*[head side-begin] min-content [topbar-end] 1em [content-begin] auto [side-end] 1em [end-begin] min-content [content-end tail];*/ 5 | /*[head side-begin] auto [topbar-end] 1em [content-begin] 1fr [side-end] 1em [end-begin] auto [content-end tail];*/ 6 | [start] 1fr [end]; 7 | grid-template-columns: [head side-begin] min-content [side-end] 1em [bar-begin] 1em [bar-end] 1em [content-begin] auto [content-end tail]; 8 | grid-template-areas: /*"side midleftline top-middle topbar topbar"*/ 9 | /*"side midleftline midline midrightline topline"*/ 10 | /*"side midleftline midline midrightline content" 11 | "side midleftline midline midrightline content" 12 | "side midleftline midline midrightline content" 13 | "side midleftline midline midrightline content"*/ 14 | "side midleftline midline midrightline content" 15 | /*"bottomline midleftline midline midrightline content-bottom"*/ 16 | /*"bottombar bottombar bottom-middle midrightline content-bottom"*/; 17 | 18 | & > .lcars-side 19 | { 20 | min-width: 10rem; 21 | grid-area: side; 22 | } 23 | 24 | & > .lcars-midline 25 | { 26 | grid-area: midline; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /docs/.vuepress/components/ColorDisplay.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 42 | 43 | 50 | -------------------------------------------------------------------------------- /src/components/examples/Game2048Tile.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 19 | 20 | 56 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | --- 2 | home: true 3 | --- 4 | 5 | # HTMLCARS 6 | 7 | Welcome to this (open-source) implementation of the LCARS design in HTML. 8 | This is easily my fourth clean start for this kind of project, this time 9 | using SASS (SCSS) as 10 | the css preprocessor. 11 | 12 | The colorscheme and font are taken from 13 | GTJLCARS, a german 14 | language resource all around the LCARS system as depicted in StarTrek 15 | series. The text font is standard Helvetica, which the title font is based 16 | on. 17 | 18 | As I use firefox for prototyping, it is quite likely that this system will 19 | be lacking behind in cross-browser compatibility, as I try to use current 20 | web-standards where possible. This documentation is created using `vuepress` 21 | with a custom theme based on `htmlcars`. 22 | 23 | The goal of this project is to provide a HTML/CSS framework that can be 24 | used to render webpages in LCARS Design, that is using state-of-the-art 25 | web standards, does not require prefabricated images, absolute positioning, 26 | flash or any other such software or system. If completed, there should be 27 | multiple components and layouts available to quickly generate LCARS consoles 28 | for any webapp. 29 | 30 | ## Examples 31 | 32 | * 403 Page 33 | * Calculator 34 | * LCARScom Database 35 | * Panel -------------------------------------------------------------------------------- /src/assets/sass/layouts/_analytical.scss: -------------------------------------------------------------------------------- 1 | /* LCARS analytical */ 2 | .lcars-analytical 3 | { 4 | display: grid; 5 | grid-template-columns: 6 | [head] 6rem [side-end] 0.4rem [content-begin] 0.6rem 7 | [status-begin] 1fr [mid-on] 1rem [mid-off] 1fr [content-end]; 8 | grid-template-rows: 9 | [head] 9rem [status-low] 1rem [status-end] 10 | min-content [bar-mid-on] 0.2rem [bar-mid-off] min-content 11 | [title-begin] 1rem [content-begin] 1fr [mid-on] 1rem [mid-off] 1fr [content-end]; 12 | 13 | .lcars-status { grid-area: head / status-begin / status-end / content-end; } 14 | .lcars-status-left { grid-area: head / status-begin / status-end / mid-on; } 15 | .lcars-status-right { grid-area: head / mid-off / status-end / content-end; } 16 | 17 | .lcars-topbar { grid-area: status-end / status-begin / bar-mid-on / content-end; } 18 | .lcars-bottombar { grid-area: bar-mid-off / status-begin / title-begin / content-end; } 19 | 20 | .lcars-sidebar { grid-area: content-begin / head / content-end / side-end; } 21 | .lcars-altbar { grid-area: head / head / status-low / side-end; } 22 | } 23 | 24 | .lcars-analytical-merged 25 | { 26 | @extend .lcars-merged-top-left; 27 | &::before { grid-area: bar-mid-off / head / content-begin / status-begin } 28 | 29 | @extend .lcars-merged-bottom-left; 30 | &::after { grid-area: status-low / head / bar-mid-on / status-begin } 31 | 32 | .lcars-altbar, .lcars-sidebar 33 | { 34 | @extend %merge-v-top; 35 | @extend %merge-v-bottom; 36 | } 37 | 38 | .lcars-topbar, .lcars-bottombar { @extend %merge-h-left; } 39 | } 40 | -------------------------------------------------------------------------------- /docs/.vuepress/components/ColorPalette.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 43 | 44 | 51 | -------------------------------------------------------------------------------- /docs/.vuepress/config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | module.exports = { 4 | scss: { 5 | data: ` 6 | @import "@lib/assets/sass/_variables.scss"; 7 | @import "@lib/assets/sass/_mixins.scss"; 8 | ` 9 | }, 10 | 11 | locales: { 12 | '/': { 13 | lang: 'en-US', 14 | title: 'HTMLCARS', 15 | description: 'Documentation site for the Vue component library plugin' 16 | } 17 | }, 18 | 19 | configureWebpack: { 20 | resolve: { 21 | alias: { 22 | "@styles": path.resolve(__dirname, "./styles"), 23 | "@lib": path.resolve(__dirname, "./../../src") 24 | } 25 | } 26 | }, 27 | 28 | theme: "local", 29 | base: "/htmlcars/", 30 | 31 | themeConfig: { 32 | repoLabel: 'Contribute!', 33 | repo: 'https://github.com/xiphoseer/htmlcars', 34 | docsDir: 'docs', 35 | editLinks: true, 36 | docsBranch: 'main', 37 | editLinkText: 'Help us improve this page!', 38 | search: false, 39 | locales: { 40 | '/': { 41 | label: 'English', 42 | selectText: 'Languages', 43 | lastUpdated: 'Last Updated', 44 | // service worker is configured but will only register in production 45 | serviceWorker: { 46 | updatePopup: { 47 | message: 'New content is available.', 48 | buttonText: 'Refresh' 49 | } 50 | }, 51 | nav: [ 52 | { text: 'Getting Started', link: '/guide' }, 53 | { text: 'Components', link: '/components/' }, 54 | ], 55 | sidebar: { 56 | '/components/': [ 57 | { 58 | title: 'Components', 59 | collapsable: false, 60 | children: ['stardate-component'] 61 | } 62 | ] 63 | } 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /src/assets/elbow.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 17 | 18 | 20 | image/svg+xml 21 | 23 | 24 | 25 | 26 | 27 | 30 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@xiphoseer/htmlcars", 3 | "version": "0.1.2", 4 | "private": false, 5 | "license": "MPL-2.0", 6 | "homepage": "https://xiphoseer.github.io/htmlcars", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/xiphoseer/htmlcars.git" 10 | }, 11 | "bugs": { 12 | "url": "https://github.com/xiphoseer/htmlcars/issues" 13 | }, 14 | "scripts": { 15 | "build": "vue-cli-service build --target lib --name htmlcars src/index.js", 16 | "lint": "vue-cli-service lint", 17 | "docs:dev": "vuepress dev docs", 18 | "docs:build": "vuepress build docs", 19 | "prepublishOnly": "$npm_execpath run-script build" 20 | }, 21 | "main": "dist/htmlcars.umd.min.js", 22 | "unpkg": "dist/htmlcars.umd.min.js", 23 | "jsdelivr": "dist/htmlcars.umd.min.js", 24 | "files": [ 25 | "dist/", 26 | "src/assets/", 27 | "src/components/", 28 | "src/*.js" 29 | ], 30 | "dependencies": { 31 | "core-js": "^3.6.5", 32 | "js-beautify": "^1.8.9", 33 | "node-sass": "^4.11.0", 34 | "sass-loader": "^7.1.0", 35 | "vue-highlightjs": "^1.3.3", 36 | "vue-resize-directive": "^1.1.4", 37 | "vue-router": "^3.0.1" 38 | }, 39 | "devDependencies": { 40 | "@vue/cli-plugin-babel": "~4.5.9", 41 | "@vue/cli-plugin-eslint": "~4.5.9", 42 | "@vue/cli-service": "~4.5.9", 43 | "babel-eslint": "^10.1.0", 44 | "eslint": "^6.7.2", 45 | "eslint-plugin-vue": "^6.2.2", 46 | "vue-template-compiler": "^2.6.12", 47 | "vuepress": "^1.7.1" 48 | }, 49 | "eslintConfig": { 50 | "root": true, 51 | "env": { 52 | "node": true 53 | }, 54 | "extends": [ 55 | "plugin:vue/essential", 56 | "eslint:recommended" 57 | ], 58 | "rules": {}, 59 | "parserOptions": { 60 | "parser": "babel-eslint" 61 | } 62 | }, 63 | "postcss": { 64 | "plugins": { 65 | "autoprefixer": {} 66 | } 67 | }, 68 | "browserslist": [ 69 | "> 1%", 70 | "last 2 versions", 71 | "not ie <= 8" 72 | ] 73 | } 74 | -------------------------------------------------------------------------------- /src/assets/sass/_colors.scss: -------------------------------------------------------------------------------- 1 | // Produce classes for all colors 2 | @each $name, $color in $lcars-colors { 3 | .lcars-bg-#{$name} { background-color: $color; } 4 | .lcars-fg-#{$name} { color: $color; } 5 | } 6 | 7 | @each $name, $color in $lcars-alert-colors { 8 | .alert .lcars-bg-#{$name} { background-color: $color; } 9 | .alert .lcars-fg-#{$name} { color: $color; } 10 | } 11 | 12 | // Produce classes for the default colors 13 | $lcars-def-keys: ( 14 | chrome-bg: $lcars-chrome-bg, 15 | chrome-fg: $lcars-chrome-fg, 16 | screen-bg: $lcars-screen-bg, 17 | screen-fg: $lcars-screen-fg 18 | ); 19 | 20 | @each $key, $color in $lcars-def-keys { 21 | .lcars-bg-default-#{$key} { background-color: $color; } 22 | .lcars-fg-default-#{$key} { color: $color; } 23 | } 24 | 25 | // Produce classes for themes 26 | @each $name, $theme in $lcars-themes { 27 | .lcars-chrome-#{$name} { 28 | @include lcars-chrome-def( 29 | map-get($theme, primary), 30 | map-get($theme, color)) 31 | @include lcars-chrome-def-light( 32 | lighten(map-get($theme, primary), 10%), 33 | map-get($theme, color)) 34 | @each $key, $color in $theme { 35 | --lcars-theme-#{$key}: #{$color}; 36 | --lcars-theme-#{$key}-light: #{lighten($color, 10%)}; 37 | } 38 | } 39 | } 40 | 41 | $lcars-theme-keys: ( 42 | "color", "title", "link", 43 | "primary", "primary-alt-1", "primary-alt-2", "primary-alt-3", 44 | "secondary", "secondary-alt-1", "secondary-alt-2", "secondary-alt-3" 45 | ); 46 | 47 | @each $key in $lcars-theme-keys { 48 | .lcars-bg-theme-#{$key} { 49 | background-color: var(--lcars-theme-#{$key}); 50 | } 51 | 52 | .lcars-fg-theme-#{$key} { 53 | color: var(--lcars-theme-#{$key}); 54 | } 55 | 56 | .lcars-chrome-#{$key} { 57 | @include lcars-chrome-def(var(--lcars-theme-#{$key}), var(--lcars-theme-color)) 58 | @include lcars-chrome-def-light(var(--lcars-theme-#{$key}-light), var(--lcars-theme-color)) 59 | } 60 | } 61 | 62 | :root 63 | { 64 | @extend .lcars-chrome-default; 65 | @each $name, $color in $lcars-palette { 66 | --lcars-color-#{$name}: #{$color}; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/assets/sass/_features.scss: -------------------------------------------------------------------------------- 1 | .badge-a 2 | { 3 | display: inline-block; 4 | border-top-left-radius: 1rem 2rem; 5 | border-top-right-radius: 1rem 2rem; 6 | border-bottom-left-radius: 1rem 2rem; 7 | border-bottom-right-radius: 1rem 2rem; 8 | padding: 0 1rem; 9 | background-color: rgb(200,0,0); 10 | 11 | h1,h2,h3,h4,h5,h6 12 | { 13 | margin: 0.1em 0 -0.1em 0; 14 | border-bottom: none; 15 | } 16 | 17 | span 18 | { 19 | font-family: LCARSGTJ3, Helvetica, sans-serif; 20 | } 21 | 22 | &::before 23 | { 24 | content: attr(key); 25 | float: left; 26 | font-size: 400%; 27 | font-family: LCARSGTJ3, Helvetica, sans-serif; 28 | padding-right: 1rem; 29 | border-right: 0.3rem solid #fff; 30 | margin-right: 1rem; 31 | } 32 | } 33 | 34 | .badge 35 | { 36 | display: inline-grid; 37 | grid-template-rows: [head] max-content [mid] max-content [tail]; 38 | grid-template-columns: [head] max-content [bar] max-content [from] minmax(min-content,20rem) [tail]; 39 | 40 | border-top-left-radius: 1rem 2rem; 41 | border-top-right-radius: 1rem 2rem; 42 | border-bottom-left-radius: 1rem 2rem; 43 | border-bottom-right-radius: 1rem 2rem; 44 | padding: 0 1rem; 45 | margin: 0.3rem; 46 | 47 | &.badge-red { background-color: rgb(200,0,0); } 48 | &.badge-brown { background-color: rgb(150,80,50); } 49 | &.badge-blue { background-color: #336699; } 50 | 51 | h1,h2,h3,h4,h5,h6 52 | { 53 | margin: 0 0 -0.2em 0; 54 | line-height: 2rem; 55 | vertical-align: bottom; 56 | border-bottom: none; 57 | grid-area: head / from / mid / tail; 58 | align-self: end; 59 | } 60 | 61 | span 62 | { 63 | font-family: LCARSGTJ3, Helvetica, sans-serif; 64 | grid-area: mid / from / tail / tail; 65 | display: inline-block; 66 | line-height: 1.1em; 67 | } 68 | 69 | &::before 70 | { 71 | content: attr(data-key); 72 | grid-area: head / head / tail / bar; 73 | font-size: 400%; 74 | font-family: LCARSGTJ3, Helvetica, sans-serif; 75 | padding-right: 1rem; 76 | } 77 | 78 | &::after 79 | { 80 | content: ""; 81 | grid-area: head / bar / tail / from; 82 | border-right: 0.1rem solid #fff; 83 | border-left: 0.2rem solid #fff; 84 | display: block; 85 | width: 0.4rem; 86 | margin-right: 1rem; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # htmLCARS 2 | 3 | This is my take on re-creating the LCARS interface ("Okudagrams") from the Star Trek 4 | television series in HTML / CSS. 5 | 6 | ## License 7 | 8 | The code in this project is licensed under the [MPL-2.0](https://spdx.org/licenses/MPL-2.0.html). 9 | 10 | ### Fonts 11 | 12 | This does not apply to `docs/.vuepress/public/assets/fonts/LCARSGTJ3.ttf` which 13 | is used under a freeware license from . 14 | 15 | The exact licensing note is in german, but the basic gist is: 16 | 17 | - It's ALLOWED to *download* and *use* the font file 18 | - It's REQUIRED to keep the filename and file content intact 19 | - It's NOT ALLOWED to *sell* it 20 | 21 | ### General LCARS IP 22 | 23 | CBS, the studio that owns the rights to the Star Trek assets seems to 24 | hold the view that using an LCARS interface on a paid app is infringing 25 | on their copyright. So while it might be fine that this project exists, 26 | it's likely that you may not use this project for any commercial product. 27 | 28 | ## Installation 29 | 30 | Add the following line to your `.npmrc`: 31 | 32 | ``` 33 | @xiphoseer:registry=https://npm.pkg.github.com/xiphoseer 34 | ``` 35 | 36 | Then, run 37 | 38 | ``` 39 | npm install @xiphoseer/htmlcars 40 | ``` 41 | 42 | or add the following line to `dependencies` in your `package.json`: 43 | 44 | ``` 45 | "@xiphoseer/htmlcars": "^0.1.0" 46 | ``` 47 | 48 | ### Font setup 49 | 50 | The (S)CSS assumes that a `font-family` called `LCARSGTJ3` is present 51 | which corresponds to the file mentioned in [License](#license). Assuming you 52 | want to use that font in your project, you need to add something like 53 | the following to your project: 54 | 55 | ```css 56 | /* http://www.gtjlcars.de/LCARSindex/LCARSFONTS.htm */ 57 | @font-face { 58 | font-family: LCARSGTJ3; 59 | src: url(/htmlcars/assets/fonts/LCARSGTJ3.ttf); 60 | } 61 | ``` 62 | 63 | ## Development setup 64 | ``` 65 | yarn install 66 | ``` 67 | 68 | ### Compiles and hot-reloads docs app for development 69 | ``` 70 | yarn run docs:dev 71 | ``` 72 | 73 | ### Compiles and minifies docs app for production 74 | ``` 75 | yarn run docs:build 76 | ``` 77 | 78 | ### Compiles and minifies library for production 79 | ``` 80 | yarn run build 81 | ``` 82 | 83 | ### Lints and fixes files 84 | ``` 85 | yarn run lint 86 | ``` 87 | -------------------------------------------------------------------------------- /src/assets/sass/layouts/_grid.scss: -------------------------------------------------------------------------------- 1 | .lcars-grid 2 | { 3 | display: grid; 4 | grid-template-rows: [head] min-content [side-end] 1em [content-begin] auto [content-end] 1em [end-begin] min-content [tail]; 5 | grid-template-columns: [head] min-content [side-end] 1em [content-begin] auto [content-end] 0 [end-begin] 0 [tail]; 6 | grid-template-areas: "top-left-corner top-left-corner topbar topbar topbar" 7 | "top-left-corner top-left-corner topline topline topline" 8 | "sidebar sideline content content ." 9 | "bottom-left-corner bottom-left-corner bottomline bottomline bottomline" 10 | "bottom-left-corner bottom-left-corner bottombar bottombar bottombar"; 11 | } 12 | 13 | %merge-h-left { padding-left: 1em; @include border-radius-left(0); } 14 | %merge-h-right { padding-right: 1em; @include border-radius-right(0); } 15 | %merge-v-top { padding-top: 1em; @include border-radius-top(0); } 16 | %merge-v-bottom { padding-bottom: 1em; @include border-radius-bottom(0); } 17 | 18 | .lcars-merged-top-left::before, .lcars-merged-bottom-left::after 19 | { 20 | background-color: var(--lcars-chrome-bg); 21 | display: block; 22 | content: ""; 23 | } 24 | 25 | .lcars-merged-top-left::before 26 | { 27 | background-image: radial-gradient(circle at 100% 100%, var(--lcars-screen-bg) 1em, var(--lcars-chrome-bg) 1em); 28 | border-top-left-radius: 3em 3em; 29 | } 30 | 31 | .lcars-merged-bottom-left::after 32 | { 33 | background-image: radial-gradient(circle at 100% 0, var(--lcars-screen-bg) 1em, var(--lcars-chrome-bg) 1em); 34 | border-bottom-left-radius: 3em 3em; 35 | } 36 | 37 | .lcars-grid-merged 38 | { 39 | @extend .lcars-merged-top-left; 40 | &::before { grid-area: head / head / content-begin / content-begin; } 41 | 42 | @extend .lcars-merged-bottom-left; 43 | &::after { grid-area: content-end / head / tail / content-begin; } 44 | 45 | > .lcars-bottombar.lcars-chrome-horizontal, 46 | > .lcars-topbar.lcars-chrome-horizontal 47 | { @extend %merge-h-left; } 48 | 49 | > .lcars-sidebar.lcars-chrome-vertical { @extend %merge-v-top; } 50 | > .lcars-sidebar.lcars-chrome-vertical { @extend %merge-v-bottom; } 51 | } 52 | 53 | .lcars-grid-merged-top 54 | { 55 | @extend .lcars-merged-top-left; 56 | &::before { grid-area: head / head / content-begin / content-begin; } 57 | 58 | > .lcars-topbar.lcars-chrome-horizontal 59 | { @extend %merge-h-left; } 60 | 61 | > .lcars-sidebar.lcars-chrome-vertical { @extend %merge-v-top; } 62 | } 63 | -------------------------------------------------------------------------------- /src/assets/sass/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Produce the CSS variables for chrome color 2 | @mixin lcars-chrome-def($bg, $fg) 3 | { 4 | --lcars-chrome-bg: #{$bg}; 5 | --lcars-chrome-fg: #{$fg}; 6 | } 7 | 8 | // Produce the CSS variables for light chrome color 9 | @mixin lcars-chrome-def-light($bg, $fg) 10 | { 11 | --lcars-chrome-bg-light: #{$bg}; 12 | --lcars-chrome-fg-light: #{$fg}; 13 | } 14 | 15 | // Produce the CSS variables for chrome color in alerts 16 | @mixin lcars-chrome-def-alert($bg, $fg) 17 | { 18 | --lcars-chrome-bg-alert: #{$bg}; 19 | --lcars-chrome-fg-alert: #{$fg}; 20 | } 21 | 22 | // Produce the CSS variables for screen color 23 | @mixin lcars-screen-def($bg, $fg) 24 | { 25 | --lcars-screen-bg: #{$bg}; 26 | --lcars-screen-fg: #{$fg}; 27 | } 28 | 29 | // Produce the CSS variables for text font 30 | @mixin lcars-basic-font-def($font-family) 31 | { 32 | --lcars-basic-font: #{$font-family}; 33 | } 34 | 35 | // Produce the CSS variables for title font 36 | @mixin lcars-title-font-def($font-family) 37 | { 38 | --lcars-title-font: #{$font-family}; 39 | } 40 | 41 | // Border-Radius Helpers 42 | @mixin border-radius-top($n) { border-top-left-radius: $n; border-top-right-radius: $n; } 43 | @mixin border-radius-right($n) { border-top-right-radius: $n; border-bottom-right-radius: $n; } 44 | @mixin border-radius-bottom($n) { border-bottom-left-radius: $n; border-bottom-right-radius: $n; } 45 | @mixin border-radius-left($n) { border-top-left-radius: $n; border-bottom-left-radius: $n; } 46 | 47 | // Use the CSS variables to set screen colors 48 | %lcars-screen-ref 49 | { 50 | background-color: var(--lcars-screen-bg); 51 | color: var(--lcars-screen-fg); 52 | } 53 | 54 | // Use the CSS variables to set chrome colors 55 | %lcars-chrome-ref 56 | { 57 | background-color: var(--lcars-chrome-bg); 58 | color: var(--lcars-chrome-fg); 59 | } 60 | 61 | // Use the CSS variables to set title font 62 | %lcars-title-font-ref 63 | { 64 | font-family: var(--lcars-title-font); 65 | } 66 | 67 | // Use the CSS variables to set basic font 68 | %lcars-basic-font-ref 69 | { 70 | font-family: var(--lcars-basic-font); 71 | } 72 | 73 | %lcars-body-ref 74 | { 75 | @extend %lcars-screen-ref; 76 | @extend %lcars-basic-font-ref; 77 | padding: $lcars-body-padding; 78 | margin: 0; 79 | } 80 | 81 | %lcars-chrome-heading 82 | { 83 | color: var(--lcars-theme-title); 84 | background-color: var(--lcars-screen-bg); 85 | font-size: var(--lcars-chrome-caption-size); 86 | margin-top: var(--lcars-chrome-offset); 87 | line-height: calc(1.3 * var(--lcars-chrome-height)); 88 | } 89 | 90 | %lcars-chrome-heading-reset 91 | { 92 | margin-bottom: 0; 93 | border-bottom: 0; 94 | } 95 | -------------------------------------------------------------------------------- /src/assets/sass/_button.scss: -------------------------------------------------------------------------------- 1 | .lcars-btn-nav 2 | { 3 | padding-left: 0.75rem; 4 | 5 | %lcars-btn-base 6 | { 7 | margin: 0.75rem 0; 8 | box-sizing: border-box; 9 | } 10 | } 11 | 12 | %lcars-btn-base 13 | { 14 | cursor: pointer; 15 | text-decoration: none; 16 | user-select: none; 17 | } 18 | 19 | .lcars-clickable 20 | { 21 | height: var(--lcars-chrome-height); 22 | 23 | @extend .lcars-chrome-primary-alt-1; 24 | @extend %lcars-btn-base; 25 | &:hover, &:focus 26 | { 27 | --lcars-chrome-bg: var(--lcars-chrome-bg-light); 28 | } 29 | 30 | &:active 31 | { 32 | --lcars-chrome-bg: var(--lcars-theme-title); 33 | } 34 | } 35 | 36 | .lcars-btn-content 37 | { 38 | @extend .lcars-font; 39 | color: var(--lcars-chrome-fg); 40 | 41 | text-align: right; 42 | display: inline-block; 43 | box-sizing: border-box; 44 | 45 | padding: var(--lcars-chrome-btn-padding); 46 | font-size: var(--lcars-chrome-btn-size); 47 | } 48 | 49 | .lcars-btn 50 | { 51 | @extend %lcars-btn-base; 52 | @extend .lcars-btn-content; 53 | 54 | @extend .lcars-chrome-primary-alt-1; 55 | background-color: var(--lcars-chrome-bg); 56 | color: var(--lcars-chrome-fg); 57 | border: 0; 58 | box-shadow: none; 59 | min-width: 4em; 60 | 61 | &:hover, &:focus { 62 | background-color: var(--lcars-chrome-bg-light); 63 | } 64 | 65 | &:active { 66 | background-color: var(--lcars-theme-title); 67 | } 68 | 69 | &.lcars-btn-block 70 | { 71 | display: block; 72 | width: calc(100% - 0.6em); 73 | } 74 | } 75 | 76 | @mixin lcars-btn-flat-color($color) 77 | { 78 | border-left-color: $color; 79 | &::after 80 | { 81 | background-color: $color; 82 | } 83 | } 84 | 85 | .lcars-btn-flat 86 | { 87 | @extend %lcars-btn-base; 88 | @extend .lcars-font; 89 | 90 | border-left: 0.5em solid var(--lcars-chrome-bg, $lcars-chrome-bg); 91 | border-top-left-radius: 0; 92 | border-bottom-left-radius: 0; 93 | text-align: left; 94 | background-color: initial; 95 | display: flex; 96 | padding: 0; 97 | width: 100%; 98 | 99 | /* Button colors */ 100 | // background-color: var(--lcars-chrome-bg-light, $lcars-chrome-bg); 101 | &:hover { 102 | background-color: initial; 103 | //background-color: var(--lcars-chrome-bg-light, $lcars-chrome-bg); 104 | } 105 | 106 | &::after 107 | { 108 | display: inline-block; 109 | content: " "; 110 | background-color: var(--lcars-chrome-bg, $lcars-screen-bg); 111 | height: inherit; 112 | flex: 0 0 0.8em; 113 | border-top-right-radius: 1em; 114 | border-bottom-right-radius: 1em; 115 | } 116 | 117 | span 118 | { 119 | flex-grow: 1; 120 | padding: 0 0.2em; 121 | line-height: 100%; 122 | font-size: 120%; 123 | color: var(--lcars-theme-title); 124 | } 125 | 126 | &:hover 127 | { 128 | &::after 129 | { 130 | flex-grow: 1; 131 | } 132 | 133 | span 134 | { 135 | flex-grow: 0; 136 | } 137 | } 138 | } 139 | 140 | .lcars-toggle 141 | { 142 | background-color: var(--lcars-chrome-bg); 143 | width: calc(var(--lcars-chrome-height) / 2); 144 | display: inline-block; 145 | height: var(--lcars-chrome-height); 146 | } 147 | 148 | input [type="button"], button 149 | { 150 | @extend .lcars-btn; 151 | } 152 | -------------------------------------------------------------------------------- /src/assets/sass/_colordef.scss: -------------------------------------------------------------------------------- 1 | // Source: https://github.com/joernweissenborn/lcars/ 2 | // https://superuser.com/questions/361297/ 3 | 4 | $lcars-palette: ( 5 | black: #000, 6 | navy-blue: #008, 7 | strong-blue: #00c, 8 | pure-blue: #00f, 9 | blue: #01e, 10 | dark-midnight-blue: #036, // blue-4 11 | nearly-pure-blue: #03f, 12 | very-dark-cyan: #066, // green-4 13 | baltic-blue: #069, // blue-3 14 | mostly-pure-blue: #06f, 15 | dark-cyan: #099, // green-3 16 | carribean-green: #0c9, // green-2 17 | pure-green: #0f0, 18 | monochrome-green-2: #0f3, 19 | monochrome-green-3: #0f6, 20 | 21 | cyan-blue: #133d87, 22 | 23 | gray: rgba(34,51,85,0.467), 24 | main-blue: #2350b5, 25 | monochrome-black: #282828, 26 | 27 | very-dark-red: #300, 28 | dark-moderate-blue: #335da7, 29 | azure-blue: #369, // badge-blue 30 | mariner: #36c, 31 | dodger-blue-alt: #36f, 32 | bavaria-blue: #39c, // blue-2 33 | monochrome-green-1: #3f0, 34 | monochrome-apple: #3f3, 35 | 36 | saturated-blue: #4159ff, 37 | indigo: #45b, 38 | moderate-blue: #4a72ca, 39 | black-swan: #4d4d4d, 40 | 41 | dodger-blue: #59f, 42 | 43 | blood-red: #600, 44 | dark-brown: #664406, 45 | eggplant: #646, 46 | lead-gray: #666, // gray-3 47 | danub: #68c, 48 | monochrome-apple-c: #6f6, 49 | 50 | cosmic: #746, 51 | 52 | steel-gray: #808080, 53 | tamarillo: #821, 54 | very-light-blue: #8d9bff, 55 | 56 | chelsea-gem: #965032, // badge-brown 57 | very-soft-blue: #97c3e1, 58 | crimson-red: #900, // red-3 59 | orange-brown: #996509, 60 | lavender-purple: #97a, 61 | cold-gray: #999, 62 | anakiwa: #9cf, // blue-1 63 | blue-bell: #99c, // blue-gray 64 | melrose: #99f, // light-blue 65 | 66 | 67 | medium-carmine: #a53, 68 | 69 | rust: #b41, 70 | bourbon: #b62, 71 | husk: #ba5, 72 | 73 | free-speech-red: #c80000, // badge-red 74 | rangoon-red: #c00, // red-2 75 | chestnut-rose: #c66, // russet, 76 | hopbush: #c69, // pink 77 | strong-orange: #cc870c, 78 | desaturated-red: #c99, 79 | lilac: #c9c, 80 | chinese-silver: #ccc, // gray-2 81 | grayish-green: #cdb, // green-1 82 | periwinkle: #cdf, 83 | 84 | red-damask: #d64, 85 | 86 | very-light-gray: #eee, // gray-1 87 | sandy-brown: #e95, 88 | 89 | sunset-orange: #f55, 90 | pure-red: #f00, //red-1 91 | bittersweet: #f66, 92 | bright-coral: #f77, 93 | light-orange: #f7c64a, 94 | very-light-red: #f88, 95 | atomic-tangerine: #f90, // orange 96 | neon-carrot: #f93, 97 | orange-peel: #f96, // apricot 98 | pale-magenta: #f9c, // light-pink 99 | very-light-pink: #ff9191, 100 | light-salmon-pink: #f99, 101 | all-gold: #ffa90f, 102 | patient-pink: #faa, 103 | amber: #ffb000, 104 | pale-red: #fbb, 105 | light-amber: #fc0, 106 | golden-tanoi: #fc6, 107 | peach-orange: #fc9, // beige 108 | light-red: #fcc, 109 | medium-yellow: #ffd966, 110 | very-pale-red: #fdd, 111 | laser-lemon: #ff6, 112 | pale-canary: #ff9, 113 | white: #fff 114 | ); 115 | -------------------------------------------------------------------------------- /docs/.vuepress/components/examples/chrome-bar-doc.vue: -------------------------------------------------------------------------------- 1 | 82 | 83 | 94 | 95 | 104 | -------------------------------------------------------------------------------- /src/assets/sass/_layout.scss: -------------------------------------------------------------------------------- 1 | .lcars-button-grid 2 | { 3 | display: grid; 4 | grid-template-rows: repeat(auto-fit, minmax(2rem, 1fr)); 5 | grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); 6 | grid-auto-rows: 2rem; 7 | grid-auto-columns: 6rem; 8 | grid-row-gap: 0.5rem; 9 | grid-column-gap: 1rem; 10 | } 11 | 12 | .lcars-hide-bar-space 13 | { 14 | .lcars-bar-space 15 | { 16 | display: none; 17 | } 18 | } 19 | 20 | %merge-right 21 | { 22 | border-top-right-radius: 0; 23 | border-bottom-right-radius: 0; 24 | } 25 | 26 | %merge-left 27 | { 28 | border-top-left-radius: 0; 29 | border-bottom-left-radius: 0; 30 | } 31 | 32 | .lcars-button-panel 33 | { 34 | display: grid; 35 | grid-template-columns: [left] 1fr [mid] 1fr [right]; 36 | grid-auto-rows: min-content; 37 | grid-auto-columns: 1fr; 38 | grid-gap: 0.5rem; 39 | 40 | .lcars-button-panel-group 41 | { 42 | display: contents; 43 | 44 | .lcars-btn:nth-child(2n+1):nth-last-child(n+2) 45 | { 46 | border-top-right-radius: 0; 47 | border-bottom-right-radius: 0; 48 | grid-column: 1 / 2; 49 | } 50 | 51 | .lcars-btn:nth-child(2n):nth-last-child(n+1) 52 | { 53 | border-top-left-radius: 0; 54 | border-bottom-left-radius: 0; 55 | grid-column: 2 / 3; 56 | } 57 | } 58 | } 59 | 60 | .lcars-container 61 | { 62 | border-radius: 1em; 63 | background-color: var(--lcars-theme-secondary); 64 | padding: 0.6em 0; 65 | margin-bottom: 0.7em; 66 | 67 | .lcars-container-inlay 68 | { 69 | background-color: var(--lcars-screen-bg); 70 | border-radius: 0.5rem; 71 | padding: 0.6rem; 72 | border-left: 0.5em solid map-get($lcars-colors, lb); 73 | border-right: 0.5em solid map-get($lcars-colors, lb); 74 | } 75 | 76 | .lcars-container-example 77 | { 78 | @include lcars-screen-def(#111, #fff); 79 | @extend %lcars-screen-ref; 80 | padding: 1rem; 81 | margin-top: 1rem; 82 | margin-bottom: 1rem; 83 | } 84 | } 85 | 86 | .lcars-console 87 | { 88 | display: grid; 89 | grid-gap: 0.4rem; 90 | grid-template-columns: [start] 0 [before left] 91 | min-content [num] min-content [blk] min-content [wrap] min-content [right left] 92 | min-content [num] min-content [blk] min-content [wrap] min-content [right after] 0 [end]; 93 | grid-template-rows: min-content; 94 | grid-auto-flow: row; 95 | 96 | .lcars-console-line 97 | { 98 | display: contents; 99 | 100 | &::before 101 | { 102 | content: ""; 103 | grid-column: start / before; 104 | background-color: red; 105 | } 106 | 107 | &::after 108 | { 109 | content: ""; 110 | grid-column: after / end; 111 | background-color: red; 112 | } 113 | 114 | .left 115 | { 116 | grid-column: left / num; 117 | @extend %merge-right; 118 | } 119 | 120 | .block 121 | { 122 | grid-column: blk / wrap; 123 | @extend %merge-left; 124 | @extend %merge-right; 125 | } 126 | 127 | .right 128 | { 129 | grid-column: wrap / right; 130 | @extend %merge-left; 131 | } 132 | 133 | span, .num 134 | { 135 | @extend .lcars-font; 136 | grid-column: num / blk; 137 | font-size: 300%; 138 | line-height: 0.8em; 139 | padding: 0 0.3rem; 140 | } 141 | } 142 | } 143 | 144 | .lcars-table 145 | { 146 | /*border-spacing: 0;*/ 147 | /*line-height: 1em;*/ 148 | 149 | th 150 | { 151 | @extend .lcars-fg-or; 152 | } 153 | } 154 | 155 | .lcars-h-scroll 156 | { 157 | overflow-x: auto; 158 | padding-bottom: 0; 159 | } 160 | 161 | .lcars-v-scroll 162 | { 163 | overflow-y: auto; 164 | padding-right: 0; 165 | } 166 | 167 | .lcars-table { 168 | margin-bottom: 1rem; 169 | } 170 | -------------------------------------------------------------------------------- /docs/colors.md: -------------------------------------------------------------------------------- 1 | # Colors 2 | 3 | A basic, empty LCARS console is black. We call this a `screen`. 4 | A screen can be filled with text, displayed in white, green or orange, as 5 | it has been for old CRT computer screens. 6 | 7 | On a screen, the recognizable features of a LCARS console are the buttons, 8 | controls, schematics, toggles, headings and more. We call them collectively 9 | the `chrome` of the console. The chrome is 10 | mostly orange or beige in TNG, very colorful in Voyager and blue-green in 11 | the newer films. 12 | 13 | This framework is intended to be mostly color independent, but provides 14 | some predefined colors as well as utility classes to use a specific theme 15 | or color. 16 | 17 | ## CSS custom properties 18 | 19 | By default, the framework uses CSS custom variables to cascade the 20 | currently selected chrome and screen color through an application. The 21 | `:root` pseudo-class is used to set some generic defaults. 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
NameCSS propertyDefault Value
chrome background--lcars-chrome-bg#999999
chrome text color--lcars-chrome-fg#000000
screen background--lcars-screen-bg#000000
screen text color--lcars-screen-fg#ffffff
54 | 55 | ## Reference 56 | 57 | While there are many colors appropriate for an LCARS interface, a realistic 58 | interface will only ever use a palette of less than 6. This section 59 | presents some predefined color that I found around the web. The sources 60 | are annotated at the bottom right of the palette tables. 61 | 62 | An LCARS Design guideline (which will not be linked here for its use of 63 | agressive language) specifies this: 64 | 65 | 1. Use no more main colors than are required to present the semantics of the interface. 66 | 2. Use up to five shades or tints of these colors when necessary. 67 | 3. Use no more than five colors in total 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /docs/elements.md: -------------------------------------------------------------------------------- 1 | # Elements 2 | 3 | This page presents how common HTML elements are displayed. The intention 4 | is to provide a consistent text display within the LCARS styling for actual 5 | content. In practice many LCARS-themed pages do this, as it greatly increases 6 | readbility and embed that in LCARS layout with some addtional components. 7 | 8 | The font used for text is `Helvetica`, as this is the regular version of the LCARS font. 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 40 | 41 | 42 | 43 | 50 | 51 | 52 | 53 | 64 | 65 | 66 | 67 | 72 | 77 | 78 | 79 | 80 | 85 | 86 | 87 | 88 | 93 | 101 | 102 | 103 | 104 | 109 | 113 | -------------------------------------------------------------------------------- /src/assets/sass/_colorref.scss: -------------------------------------------------------------------------------- 1 | // Full color palette 2 | $lcars-colors: ( 3 | or: map-get($lcars-voyager-colors, orange), 4 | fl: map-get($lcars-voyager-colors, lilac), 5 | bg: map-get($lcars-voyager-colors, blue-gray), 6 | rb: map-get($lcars-voyager-colors, russet), 7 | be: map-get($lcars-voyager-colors, beige), 8 | lb: map-get($lcars-voyager-colors, light-blue), 9 | ap: map-get($lcars-voyager-colors, apricot), 10 | pi: map-get($lcars-voyager-colors, pink), 11 | lp: map-get($lcars-voyager-colors, light-pink), 12 | ho: map-get($lcars-voyager-colors, light-orange), 13 | 14 | ck: map-get($lcars-palette, black), 15 | gr: map-get($lcars-palette, cold-gray), 16 | 17 | b1: map-get($lcars-uss-na-colors, blue-1), 18 | b2: map-get($lcars-uss-na-colors, blue-2), 19 | b3: map-get($lcars-uss-na-colors, blue-3), 20 | b4: map-get($lcars-uss-na-colors, blue-4), 21 | 22 | g1: map-get($lcars-uss-na-colors, green-1), 23 | g2: map-get($lcars-uss-na-colors, green-2), 24 | g3: map-get($lcars-uss-na-colors, green-3), 25 | g4: map-get($lcars-uss-na-colors, green-4), 26 | 27 | p1: map-get($lcars-palette, golden-tanoi), 28 | p2: map-get($lcars-palette, cold-gray), 29 | p3: map-get($lcars-palette, chestnut-rose), 30 | p4: map-get($lcars-palette, lilac), 31 | p5: map-get($lcars-palette, anakiwa), 32 | p6: map-get($lcars-palette, atomic-tangerine), 33 | 34 | pc: map-get($lcars-palette, pale-canary), 35 | gt: map-get($lcars-palette, golden-tanoi), 36 | nc: map-get($lcars-palette, neon-carrot), 37 | ep: map-get($lcars-palette, eggplant), 38 | lc: map-get($lcars-palette, lilac), 39 | ak: map-get($lcars-palette, anakiwa), 40 | mi: map-get($lcars-palette, mariner), 41 | bt: map-get($lcars-palette, baltic-blue), 42 | bb: map-get($lcars-palette, blue-bell), 43 | mr: map-get($lcars-palette, melrose), 44 | hb: map-get($lcars-palette, hopbush), 45 | cr: map-get($lcars-palette, chestnut-rose), 46 | op: map-get($lcars-palette, orange-peel), 47 | at: map-get($lcars-palette, atomic-tangerine), 48 | db: map-get($lcars-palette, danub), 49 | ig: map-get($lcars-palette, indigo), 50 | lr: map-get($lcars-palette, lavender-purple), 51 | cs: map-get($lcars-palette, cosmic), 52 | rd: map-get($lcars-palette, red-damask), 53 | ca: map-get($lcars-palette, medium-carmine), 54 | br: map-get($lcars-palette, bourbon), 55 | sb: map-get($lcars-palette, sandy-brown), 56 | pw: map-get($lcars-palette, periwinkle), 57 | dg: map-get($lcars-palette, dodger-blue), 58 | dd: map-get($lcars-palette, dodger-blue-alt), 59 | bl: map-get($lcars-palette, blue), 60 | nb: map-get($lcars-palette, navy-blue), 61 | hs: map-get($lcars-palette, husk), 62 | rs: map-get($lcars-palette, rust), 63 | tm: map-get($lcars-palette, tamarillo), 64 | 65 | bo: map-get($lcars-palette, blood-red), 66 | ch: map-get($lcars-palette, chinese-silver), 67 | cm: map-get($lcars-palette, crimson-red), 68 | rg: map-get($lcars-palette, rangoon-red), 69 | pr: map-get($lcars-palette, pure-red), 70 | ll: map-get($lcars-palette, laser-lemon), 71 | vr: map-get($lcars-palette, very-dark-red), 72 | 73 | tb: map-get($lcars-palette, strong-blue), 74 | ur: map-get($lcars-palette, nearly-pure-blue), 75 | mb: map-get($lcars-palette, mostly-pure-blue), 76 | cb: map-get($lcars-palette, cyan-blue), 77 | ib: map-get($lcars-palette, main-blue), 78 | ob: map-get($lcars-palette, dark-moderate-blue), 79 | ab: map-get($lcars-palette, saturated-blue), 80 | eb: map-get($lcars-palette, moderate-blue), 81 | bs: map-get($lcars-palette, black-swan), 82 | dr: map-get($lcars-palette, dark-brown), 83 | sg: map-get($lcars-palette, steel-gray), 84 | vb: map-get($lcars-palette, very-light-blue), 85 | vs: map-get($lcars-palette, very-soft-blue), 86 | on: map-get($lcars-palette, orange-brown), 87 | so: map-get($lcars-palette, strong-orange), 88 | vp: map-get($lcars-palette, very-light-pink), 89 | ag: map-get($lcars-palette, all-gold), 90 | my: map-get($lcars-palette, medium-yellow), 91 | ); 92 | 93 | $lcars-alert-colors: ( 94 | or: map-get($lcars-palette, very-pale-red), 95 | fl: map-get($lcars-palette, light-red), 96 | bg: map-get($lcars-palette, pale-red), 97 | rb: map-get($lcars-palette, patient-pink), 98 | be: map-get($lcars-palette, light-salmon-pink), 99 | lb: map-get($lcars-palette, very-light-red), 100 | ap: map-get($lcars-palette, bright-coral), 101 | pi: map-get($lcars-palette, bittersweet), 102 | ho: map-get($lcars-palette, sunset-orange), 103 | ); 104 | -------------------------------------------------------------------------------- /docs/layouts.md: -------------------------------------------------------------------------------- 1 | # Layouts 2 | 3 | Based on the CSS Grid and Flexbox systems, there are a set of predefined layouts available. These commonly use the same placeholder names for the different areas, which means that migrating form one layout to another should be as easy as possible. Writing new layouts that extend or integrate existing ones should also work quite well. 4 | 5 | These grid layouts may be optimized for or enhance some of the provided 6 | components (especially the `chrome` ones). 7 | 8 | 9 | 14 | 31 | 32 | 33 | 34 | 39 | 58 | 59 | 60 | 61 | 67 | 104 | -------------------------------------------------------------------------------- /src/components/layouts/GridLayout.vue: -------------------------------------------------------------------------------- 1 | 63 | 64 | 139 | 140 | 156 | -------------------------------------------------------------------------------- /docs/.vuepress/components/Calculator.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 47 | 48 | 136 | -------------------------------------------------------------------------------- /src/assets/sass/_chrome.scss: -------------------------------------------------------------------------------- 1 | .lcars-field 2 | { 3 | @extend .lcars-bg-ho; 4 | border-radius: 1rem; 5 | padding: 1rem; 6 | } 7 | 8 | :root 9 | { 10 | @include lcars-chrome-def($lcars-chrome-bg, $lcars-chrome-fg); 11 | @include lcars-chrome-def-alert($lcars-chrome-bg-alert, $lcars-chrome-fg-alert); 12 | @include lcars-screen-def($lcars-screen-bg, $lcars-screen-fg); 13 | @include lcars-basic-font-def($lcars-basic-font); 14 | @include lcars-title-font-def($lcars-title-font); 15 | } 16 | 17 | .alert 18 | { 19 | --lcars-chrome-bg: var(--lcars-chrome-bg-alert) !important; 20 | --lcars-chrome-fg: var(--lcars-chrome-fg-alert) !important; 21 | } 22 | 23 | @each $name, $color in $lcars-colors { 24 | .lcars-chrome-#{$name} { 25 | --lcars-chrome-bg: #{$color}; 26 | --lcars-chrome-bg-light: #{lighten($color, 10%)}; 27 | } 28 | } 29 | 30 | .lcars-round-right 31 | { 32 | border-top-right-radius: var(--lcars-chrome-height); 33 | border-bottom-right-radius: var(--lcars-chrome-height); 34 | } 35 | 36 | .lcars-round-left 37 | { 38 | border-top-left-radius: var(--lcars-chrome-height); 39 | border-bottom-left-radius: var(--lcars-chrome-height); 40 | } 41 | 42 | .lcars-round 43 | { 44 | border-radius: var(--lcars-chrome-height); 45 | } 46 | 47 | %lcars-chrome-cap-base 48 | { 49 | width: var(--lcars-chrome-height); 50 | height: var(--lcars-chrome-height); 51 | background-color: var(--lcars-chrome-bg); 52 | @extend %lcars-chrome-component; 53 | } 54 | 55 | .lcars-chrome-cap-right 56 | { 57 | @extend %lcars-chrome-cap-base; 58 | @extend .lcars-round-right; 59 | } 60 | 61 | .lcars-chrome-cap-left 62 | { 63 | @extend %lcars-chrome-cap-base; 64 | @extend .lcars-round-right; 65 | } 66 | 67 | %lcars-chrome-component 68 | { 69 | display: inline-block; 70 | flex: 0 0 auto; 71 | } 72 | 73 | .lcars-chrome-set 74 | { 75 | background-color: var(--lcars-chrome-bg); 76 | color: var(--lcars-chrome-fg); 77 | } 78 | 79 | .lcars-chrome-base 80 | { 81 | display: flex; 82 | 83 | :not(:first-child) { 84 | border-left: $lcars-basic-border; 85 | } 86 | 87 | h1, h2, h3, h4, h5, h6 88 | { 89 | @extend .lcars-chrome-component; 90 | @extend %lcars-chrome-heading; 91 | @extend %lcars-chrome-heading-reset; 92 | /*padding: 0 0.1em;*/ 93 | } 94 | 95 | .lcars-chrome-component { 96 | @extend %lcars-chrome-component; 97 | } 98 | 99 | .lcars-bar-space 100 | { 101 | display: inline-block; 102 | flex: 1 0 auto; 103 | } 104 | 105 | .lcars-btn 106 | { 107 | @extend %lcars-chrome-component; 108 | } 109 | 110 | .lcars-fill 111 | { 112 | flex: 1 0 auto; 113 | } 114 | } 115 | 116 | .lcars-chrome 117 | { 118 | @extend .lcars-chrome-base; 119 | background-color: var(--lcars-chrome-bg); 120 | border-radius: 2em; 121 | } 122 | 123 | .lcars-chrome-horizontal 124 | { 125 | @extend .lcars-chrome; 126 | padding: 0 2rem; 127 | max-height: var(--lcars-chrome-height); 128 | height: var(--lcars-chrome-height); 129 | min-height: var(--lcars-chrome-height); 130 | flex-direction: row; 131 | 132 | &.alt-cap-right 133 | { 134 | border-right: 2.5em solid map-get($lcars-colors, or); 135 | padding-right: 0; 136 | border-top-right-radius: 0; 137 | border-bottom-right-radius: 0; 138 | } 139 | 140 | &.alt-cap-left 141 | { 142 | border-left: 2.5em solid map-get($lcars-colors, or); 143 | padding-left: 0; 144 | border-top-left-radius: 0; 145 | border-bottom-left-radius: 0; 146 | } 147 | 148 | .lcars-bar-space.inlay-up 149 | { 150 | border-bottom: 0.5rem solid var(--lcars-screen-bg); 151 | } 152 | 153 | .lcars-bar-space.inlay-down 154 | { 155 | border-top: 0.5rem solid var(--lcars-screen-bg); 156 | } 157 | } 158 | 159 | .lcars-chrome-vertical 160 | { 161 | @extend .lcars-chrome; 162 | padding: 2em 0; 163 | /*width: var(--lcars-chrome-height);*/ 164 | min-width: var(--lcars-chrome-height); 165 | flex-direction: column; 166 | 167 | :not(:first-child) 168 | { 169 | border-top: $lcars-basic-border; 170 | border-left: 0; 171 | } 172 | 173 | .lcars-chrome-component 174 | { 175 | text-align: right; 176 | } 177 | } 178 | 179 | @mixin lcars-chrome-size($height, $caption-size, $offset, $btn-padding, $btn-size) 180 | { 181 | #{"--lcars-chrome-height"}: $height; 182 | #{"--lcars-chrome-caption-size"}: $caption-size; 183 | #{"--lcars-chrome-offset"}: $offset; 184 | #{"--lcars-chrome-btn-padding"}: $btn-padding; 185 | #{"--lcars-chrome-btn-size"}: $btn-size; 186 | } 187 | 188 | .lcars-chrome-small { @include lcars-chrome-size(1rem, 130%, -0.12rem, 0 0.2rem, 90%); } 189 | .lcars-chrome-smaller { @include lcars-chrome-size(1.5rem, 185%, -0.12rem, 0 0.3rem, 100%); } 190 | .lcars-chrome-normal { @include lcars-chrome-size(2rem, 260%, -0.25rem, 0.3em 0.6em 0 0.6em, 16pt); } 191 | .lcars-chrome-larger { @include lcars-chrome-size(2.5rem, 330%, -0.3rem, 0.6rem, 16pt); } 192 | .lcars-chrome-large { @include lcars-chrome-size(3rem, 400%, -0.4rem, 1.2rem 0.6rem, 16pt); } 193 | 194 | :root 195 | { 196 | @extend .lcars-chrome-normal; 197 | } 198 | 199 | .lcars-chrome-field 200 | { 201 | @extend .lcars-font; 202 | padding: 0 0.3rem; 203 | color: #000; 204 | } 205 | 206 | .text-bottom-left, .text-top-left 207 | { 208 | text-align: left; 209 | } 210 | 211 | .text-top-right, .text-bottom-right 212 | { 213 | text-align: right; 214 | } 215 | 216 | .text-bottom-right::before, .text-bottom-left::before 217 | { 218 | content: ''; 219 | display: inline-block; 220 | height: 100%; 221 | vertical-align: bottom; 222 | } 223 | -------------------------------------------------------------------------------- /docs/.vuepress/theme/layouts/Engineering.vue: -------------------------------------------------------------------------------- 1 | 48 | 49 | 223 | -------------------------------------------------------------------------------- /docs/.vuepress/theme/layouts/Layout.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 40 | 41 | 111 | 112 | 150 | -------------------------------------------------------------------------------- /src/assets/sass/_themes.scss: -------------------------------------------------------------------------------- 1 | $lcars-themes: ( 2 | voyager: ( 3 | title: map-get($lcars-voyager-colors, orange), 4 | color: #000000, 5 | link: #ff0000, 6 | 7 | primary: map-get($lcars-voyager-colors, light-orange), 8 | primary-alt-1: map-get($lcars-voyager-colors, light-blue), 9 | primary-alt-2: map-get($lcars-voyager-colors, blue-gray), 10 | primary-alt-3: map-get($lcars-voyager-colors, lilac), 11 | 12 | secondary: map-get($lcars-voyager-colors, russet), 13 | secondary-alt-1: map-get($lcars-voyager-colors, apricot), 14 | secondary-alt-2: map-get($lcars-voyager-colors, pink), 15 | secondary-alt-3: map-get($lcars-voyager-colors, beige) 16 | ), 17 | uss-na: ( 18 | title: #ffffff, 19 | color: #000000, 20 | link: map-get($lcars-palette, pure-blue), 21 | 22 | primary: map-get($lcars-uss-na-colors, blue-4), 23 | primary-alt-1: map-get($lcars-uss-na-colors, blue-1), 24 | primary-alt-2: map-get($lcars-uss-na-colors, blue-2), 25 | primary-alt-3: map-get($lcars-uss-na-colors, blue-3), 26 | 27 | secondary: map-get($lcars-uss-na-colors, green-4), 28 | secondary-alt-1: map-get($lcars-uss-na-colors, green-1), 29 | secondary-alt-2: map-get($lcars-uss-na-colors, green-2), 30 | secondary-alt-3: map-get($lcars-uss-na-colors, green-3) 31 | ), 32 | year-2357: ( 33 | title: #fff, 34 | color: #000, 35 | link: #fff, 36 | 37 | primary: map-get($year-2357-colors, a), 38 | primary-alt-1: map-get($year-2357-colors, b), 39 | primary-alt-2: map-get($year-2357-colors, c), 40 | primary-alt-3: map-get($year-2357-colors, e), 41 | 42 | secondary: map-get($year-2357-colors, d), 43 | secondary-alt-1: map-get($year-2357-colors, f), 44 | secondary-alt-2: map-get($year-2357-colors, g), 45 | secondary-alt-3: map-get($year-2357-colors, h) 46 | ), 47 | year-2369: ( 48 | title: #fff, 49 | color: #000, 50 | link: #fff, 51 | 52 | primary: map-get($year-2369-colors, h), 53 | primary-alt-1: map-get($year-2369-colors, f), 54 | primary-alt-2: map-get($year-2369-colors, g), 55 | primary-alt-3: map-get($year-2369-colors, e), 56 | 57 | secondary: map-get($year-2369-colors, a), 58 | secondary-alt-1: map-get($year-2369-colors, b), 59 | secondary-alt-2: map-get($year-2369-colors, c), 60 | secondary-alt-3: map-get($year-2369-colors, d) 61 | ), 62 | year-2375: ( 63 | title: #fff, 64 | color: #000, 65 | link: #fff, 66 | 67 | primary: map-get($year-2375-colors, a), 68 | primary-alt-1: map-get($year-2375-colors, b), 69 | primary-alt-2: map-get($year-2375-colors, c), 70 | primary-alt-3: map-get($year-2375-colors, d), 71 | 72 | secondary: map-get($year-2375-colors, e), 73 | secondary-alt-1: map-get($year-2375-colors, f), 74 | secondary-alt-2: map-get($year-2375-colors, g), 75 | secondary-alt-3: map-get($year-2375-colors, h) 76 | ), 77 | year-2379: ( 78 | title: #fff, 79 | color: #000, 80 | link: #fff, 81 | 82 | primary: map-get($year-2379-colors, a), 83 | primary-alt-1: map-get($year-2379-colors, b), 84 | primary-alt-2: map-get($year-2379-colors, c), 85 | primary-alt-3: map-get($year-2379-colors, d), 86 | 87 | secondary: map-get($year-2379-colors, e), 88 | secondary-alt-1: map-get($year-2379-colors, f), 89 | secondary-alt-2: map-get($year-2379-colors, g), 90 | secondary-alt-3: map-get($year-2379-colors, h) 91 | ), 92 | crt-green: ( 93 | title: map-get($lcars-palette, monochrome-green-1), 94 | color: map-get($lcars-palette, monochrome-black), 95 | link: map-get($lcars-palette, monochrome-green-1), 96 | 97 | primary: map-get($lcars-palette, monochrome-green-1), 98 | primary-alt-1: map-get($lcars-palette, monochrome-green-1), 99 | primary-alt-2: map-get($lcars-palette, monochrome-green-1), 100 | primary-alt-3: map-get($lcars-palette, monochrome-green-1), 101 | 102 | secondary: map-get($lcars-palette, monochrome-green-1), 103 | secondary-alt-1: map-get($lcars-palette, monochrome-green-1), 104 | secondary-alt-2: map-get($lcars-palette, monochrome-green-1), 105 | secondary-alt-3: map-get($lcars-palette, monochrome-green-1), 106 | ), 107 | crt-amber: ( 108 | title: map-get($lcars-palette, amber), 109 | color: map-get($lcars-palette, monochrome-black), 110 | link: map-get($lcars-palette, amber), 111 | 112 | primary: map-get($lcars-palette, amber), 113 | primary-alt-1: map-get($lcars-palette, amber), 114 | primary-alt-2: map-get($lcars-palette, amber), 115 | primary-alt-3: map-get($lcars-palette, amber), 116 | 117 | secondary: map-get($lcars-palette, amber), 118 | secondary-alt-1: map-get($lcars-palette, amber), 119 | secondary-alt-2: map-get($lcars-palette, amber), 120 | secondary-alt-3: map-get($lcars-palette, amber), 121 | ), 122 | red-alert: ( 123 | title: #ffffff, 124 | color: #000000, 125 | link: #ff0000, 126 | 127 | primary: map-get($lcars-uss-na-alert-colors, blue-4), 128 | primary-alt-1: map-get($lcars-uss-na-alert-colors, blue-1), 129 | primary-alt-2: map-get($lcars-uss-na-alert-colors, blue-2), 130 | primary-alt-3: map-get($lcars-uss-na-alert-colors, blue-3), 131 | 132 | secondary: map-get($lcars-uss-na-alert-colors, green-4), 133 | secondary-alt-1: map-get($lcars-uss-na-alert-colors, green-1), 134 | secondary-alt-2: map-get($lcars-uss-na-alert-colors, green-2), 135 | secondary-alt-3: map-get($lcars-uss-na-alert-colors, green-3) 136 | ), 137 | default: ( 138 | title: #ffffff, 139 | color: #000000, 140 | link: #eeeeee, 141 | 142 | primary: #999999, 143 | primary-alt-1: #aaaaaa, 144 | primary-alt-2: #bbbbbb, 145 | primary-alt-3: #cccccc, 146 | 147 | secondary: #555555, 148 | secondary-alt-1: #666666, 149 | secondary-alt-2: #777777, 150 | secondary-alt-3: #888888 151 | ) 152 | ); 153 | -------------------------------------------------------------------------------- /src/assets/sass/_colorpalettes.scss: -------------------------------------------------------------------------------- 1 | // Voyager LCARS colors (http://www.gtjlcars.de/LCARSindex/Colorindex1.htm) 2 | $lcars-voyager-colors: ( 3 | orange: map-get($lcars-palette, atomic-tangerine), 4 | lilac: map-get($lcars-palette, lilac), 5 | blue-gray: map-get($lcars-palette, blue-bell), 6 | russet: map-get($lcars-palette, chestnut-rose), 7 | beige: map-get($lcars-palette, peach-orange), 8 | light-blue: map-get($lcars-palette, melrose), 9 | apricot: map-get($lcars-palette, orange-peel), 10 | pink: map-get($lcars-palette, hopbush), 11 | light-pink: map-get($lcars-palette, pale-magenta), 12 | light-orange: map-get($lcars-palette, light-orange) 13 | ); 14 | 15 | // USS not affiliated (http://lcarssdk.org/ => Visual Guide => Colors) 16 | $lcars-uss-na-colors: ( 17 | blue-1: map-get($lcars-palette, anakiwa), 18 | blue-2: map-get($lcars-palette, bavaria-blue), 19 | blue-3: map-get($lcars-palette, baltic-blue), 20 | blue-4: map-get($lcars-palette, dark-midnight-blue), 21 | 22 | green-1: map-get($lcars-palette, grayish-green), 23 | green-2: map-get($lcars-palette, carribean-green), 24 | green-3: map-get($lcars-palette, dark-cyan), 25 | green-4: map-get($lcars-palette, very-dark-cyan) 26 | ); 27 | 28 | $lcars-uss-na-alert-colors: ( 29 | blue-1: map-get($lcars-palette, chinese-silver), 30 | blue-2: map-get($lcars-palette, cold-gray), 31 | blue-3: map-get($lcars-palette, rangoon-red), 32 | blue-4: map-get($lcars-palette, blood-red), 33 | 34 | green-1: map-get($lcars-palette, laser-lemon), 35 | green-2: map-get($lcars-palette, pure-red), 36 | green-3: map-get($lcars-palette, crimson-red), 37 | green-4: map-get($lcars-palette, very-dark-red) 38 | ); 39 | 40 | // LCARS SDK colors 41 | $lcars-sdk-colors: ( 42 | chrome-bg: map-get($lcars-palette, cold-gray), 43 | chrome-fg: map-get($lcars-palette, black), 44 | 45 | red-1: map-get($lcars-palette, pure-red), 46 | red-2: map-get($lcars-palette, rangoon-red), 47 | red-3: map-get($lcars-palette, crimson-red), 48 | 49 | gray-1: map-get($lcars-palette, very-light-gray), 50 | gray-2: map-get($lcars-palette, chinese-silver), 51 | gray-3: map-get($lcars-palette, lead-gray) 52 | ); 53 | 54 | // https://codepen.io/Mokurunner/pen/eqtHl 55 | // TNG-Colors 56 | $year-2357-colors: ( 57 | a: map-get($lcars-palette, pale-canary), 58 | b: map-get($lcars-palette, golden-tanoi), 59 | c: map-get($lcars-palette, neon-carrot), 60 | d: map-get($lcars-palette, eggplant), 61 | e: map-get($lcars-palette, lilac), 62 | f: map-get($lcars-palette, anakiwa), 63 | g: map-get($lcars-palette, mariner), 64 | h: map-get($lcars-palette, baltic-blue) 65 | ); 66 | 67 | $year-2369-colors: ( 68 | a: map-get($lcars-palette, blue-bell), 69 | b: map-get($lcars-palette, melrose), 70 | c: map-get($lcars-palette, lilac), 71 | d: map-get($lcars-palette, hopbush), 72 | e: map-get($lcars-palette, chestnut-rose), 73 | f: map-get($lcars-palette, orange-peel), 74 | g: map-get($lcars-palette, atomic-tangerine), 75 | h: map-get($lcars-palette, golden-tanoi) 76 | ); 77 | 78 | $year-2375-colors: ( 79 | a: map-get($lcars-palette, danub), 80 | b: map-get($lcars-palette, indigo), 81 | c: map-get($lcars-palette, lavender-purple), 82 | d: map-get($lcars-palette, cosmic), 83 | e: map-get($lcars-palette, red-damask), 84 | f: map-get($lcars-palette, medium-carmine), 85 | g: map-get($lcars-palette, bourbon), 86 | h: map-get($lcars-palette, sandy-brown) 87 | ); 88 | 89 | $year-2379-colors: ( 90 | a: map-get($lcars-palette, periwinkle), 91 | b: map-get($lcars-palette, dodger-blue), 92 | c: map-get($lcars-palette, dodger-blue-alt), 93 | d: map-get($lcars-palette, blue), 94 | e: map-get($lcars-palette, navy-blue), 95 | f: map-get($lcars-palette, husk), 96 | g: map-get($lcars-palette, rust), 97 | h: map-get($lcars-palette, tamarillo) 98 | ); 99 | 100 | // https://www.deviantart.com/sumghai/art/25th-Century-Starfleet-LCARS-Color-Schemes-330137019 101 | $odyssey-normal-colors: ( 102 | offline: map-get($lcars-palette, black-swan), 103 | dark-1: map-get($lcars-palette, cyan-blue), 104 | frame: map-get($lcars-palette, main-blue), 105 | light-1: map-get($lcars-palette, dark-moderate-blue), 106 | light-2: map-get($lcars-palette, moderate-blue), 107 | active: map-get($lcars-palette, very-soft-blue) 108 | ); 109 | 110 | // Power / Resource conservation, 111 | $odyssey-gray-mode-colors: ( 112 | offline: map-get($lcars-palette, black-swan), 113 | dark-1: map-get($lcars-palette, steel-gray), 114 | frame: map-get($lcars-palette, steel-gray), 115 | light-1: map-get($lcars-palette, steel-gray), 116 | light-2: map-get($lcars-palette, steel-gray), 117 | active: map-get($lcars-palette, chinese-silver) 118 | ); 119 | 120 | // Landing, Docking, Separation, Environmental 121 | $odyssey-blue-alert-colors: ( 122 | offline: map-get($lcars-palette, black-swan), 123 | dark-1: map-get($lcars-palette, strong-blue), 124 | frame: map-get($lcars-palette, nearly-pure-blue), 125 | light-1: map-get($lcars-palette, mostly-pure-blue), 126 | light-2: map-get($lcars-palette, saturated-blue), 127 | active: map-get($lcars-palette, very-light-blue) 128 | ); 129 | 130 | // Elevated Awareness, Shields online 131 | $odyssey-yellow-alert-colors: ( 132 | offline: map-get($lcars-palette, black-swan), 133 | dark-1: map-get($lcars-palette, dark-brown), 134 | frame: map-get($lcars-palette, orange-brown), 135 | light-1: map-get($lcars-palette, strong-orange), 136 | light-2: map-get($lcars-palette, all-gold), 137 | active: map-get($lcars-palette, medium-yellow) 138 | ); 139 | 140 | $odyssey-red-alert-colors: ( 141 | offline: map-get($lcars-palette, black-swan), 142 | dark-1: map-get($lcars-palette, blood-red), 143 | frame: map-get($lcars-palette, crimson-red), 144 | light-1: map-get($lcars-palette, rangoon-red), 145 | light-2: map-get($lcars-palette, pure-red), 146 | active: map-get($lcars-palette, very-light-pink) 147 | ); 148 | -------------------------------------------------------------------------------- /docs/.vuepress/theme/layouts/LcarscomDB.vue: -------------------------------------------------------------------------------- 1 | 78 | 79 | 136 | -------------------------------------------------------------------------------- /src/themes.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | name: "Year 2357", 4 | colors: [ 5 | { 6 | name: "Primary", 7 | hues: [ 8 | { name: "pale-canary", key: "pc" }, 9 | { name: "golden-tanoi", key: "gt" }, 10 | { name: "neon-carrot", key: "nc" }, 11 | {}, 12 | {} 13 | ] 14 | }, 15 | { 16 | name: "Secondary", 17 | hues: [ 18 | { name: "eggplant", key: "ep" }, 19 | { name: "lilac", key: "lc" } 20 | ] 21 | }, 22 | { 23 | name: "Tertiary", 24 | hues: [ 25 | { name: "anakiwa", key: "ak" }, 26 | { name: "mariner", key: "mi" }, 27 | { name: "baltic-blue", key: "bt" } 28 | ] 29 | } 30 | ] 31 | }, 32 | { 33 | name: "Year 2369", 34 | colors: [ 35 | { 36 | name: "Primary", 37 | hues: [ 38 | { name: "blue-bell", key: "bb" }, 39 | { name: "melrose", key: "mr" }, 40 | {}, 41 | {}, 42 | {} 43 | ] 44 | }, 45 | { 46 | name: "Secondary", 47 | hues: [ 48 | { name: "lilac", key: "lc" }, 49 | { name: "hopbush", key: "hb" } 50 | ] 51 | }, 52 | { 53 | name: "Tertiary", 54 | hues: [ 55 | { name: "chestnut-rose", key: "cr" }, 56 | { name: "orange-peel", key: "op" } 57 | ] 58 | }, 59 | { 60 | name: "Quaternary", 61 | hues: [ 62 | { name: "atomic-tangerine", key: "at" }, 63 | { name: "golden-tanoi", key: "gt" } 64 | ] 65 | } 66 | ] 67 | }, 68 | { 69 | name: "Year 2375", 70 | colors: [ 71 | { 72 | name: "Primary", 73 | hues: [ 74 | { name: 'danub', key: 'db' }, 75 | { name: 'indigo', key: 'ig' }, 76 | ] 77 | }, 78 | { 79 | name: "Secondary", 80 | hues: [ 81 | { name: 'lavender-purple', key: 'lr' }, 82 | { name: 'cosmic', key: 'cs' }, 83 | ] 84 | }, 85 | { 86 | name: "Tertiary", 87 | hues: [ 88 | { name: 'red-damask', key: 'rd' }, 89 | { name: 'medium-carmine', key: 'ca' }, 90 | { name: 'bourbon', key: 'br' }, 91 | { name: 'sandy-brown', key: 'sb' }, 92 | {} 93 | ] 94 | } 95 | ] 96 | }, 97 | { 98 | name: "Year 2379", 99 | colors: [ 100 | { 101 | name: "Primary", 102 | hues: [ 103 | { name: 'periwinkle', key: 'pw' }, 104 | { name: 'dodger-blue', key: 'dg' }, 105 | { name: 'dodger-blue-alt', key: 'dd' }, 106 | { name: 'blue', key: 'bl' }, 107 | { name: 'navy-blue', key: 'nb' }, 108 | ] 109 | }, 110 | { 111 | name: "Secondary", 112 | hues: [ 113 | { name: 'husk', key: 'hs' }, 114 | { name: 'rust', key: 'rs' }, 115 | { name: 'tamarillo', key: 'tm' } 116 | ] 117 | } 118 | ] 119 | }, 120 | { 121 | name: "USS Not-Affiliated", 122 | colors: [ 123 | { 124 | name: "Primary", 125 | hues: [ 126 | { name: 'Blue-1', key: 'b1' }, 127 | { name: 'Blue-2', key: 'b2' }, 128 | { name: 'Blue-3', key: 'b3' }, 129 | { name: 'Blue-4', key: 'b4' }, 130 | {} 131 | ] 132 | }, 133 | { 134 | name: "Secondary", 135 | hues: [ 136 | { name: 'Green-1', key: 'g1' }, 137 | { name: 'Green-2', key: 'g2' }, 138 | { name: 'Green-3', key: 'g3' }, 139 | { name: 'Green-4', key: 'g4' } 140 | ] 141 | }, 142 | { 143 | name: "Red", 144 | hues: [ 145 | { name: 'chinese-silver', key: 'ch' }, 146 | { name: 'cold-gray', key: 'gr' }, 147 | { name: 'rangoon-red', key: 'rg' }, 148 | { name: 'blood-red', key: 'bo' } 149 | ] 150 | }, 151 | { 152 | name: "Sec. Red", 153 | hues: [ 154 | { name: 'laser-lemon', key: 'll' }, 155 | { name: 'pure-red', key: 'pr' }, 156 | { name: 'crimson-red', key: 'cm' }, 157 | { name: 'very-dark-red', key: 'vr' } 158 | ] 159 | }, 160 | ] 161 | }, 162 | { 163 | name: "Odyssey", 164 | colors: [ 165 | { 166 | name: "Primary", 167 | hues: [ 168 | { name: 'dark-1', key: 'cb' }, 169 | { name: 'frame', key: 'ib' }, 170 | { name: 'light-1', key: 'ob' }, 171 | { name: 'light-2', key: 'eb' }, 172 | { name: 'active', key: 'vs' } 173 | ] 174 | }, 175 | { 176 | name: "Gray", 177 | hues: [ 178 | { name: 'dark-1', key: 'sg' }, 179 | { name: 'frame', key: 'sg' }, 180 | { name: 'light-1', key: 'sg' }, 181 | { name: 'light-2', key: 'sg' }, 182 | { name: 'active', key: 'ch' } 183 | ] 184 | }, 185 | { 186 | name: "Blue", 187 | hues: [ 188 | { name: 'dark-1', key: 'tb' }, 189 | { name: 'frame', key: 'ur' }, 190 | { name: 'light-1', key: 'mb' }, 191 | { name: 'light-2', key: 'ab' }, 192 | { name: 'active', key: 'vb' } 193 | ] 194 | }, 195 | { 196 | name: "Yellow", 197 | hues: [ 198 | { name: 'dark-1', key: 'dr' }, 199 | { name: 'frame', key: 'on' }, 200 | { name: 'light-1', key: 'so' }, 201 | { name: 'light-2', key: 'ag' }, 202 | { name: 'active', key: 'my' } 203 | ] 204 | }, 205 | { 206 | name: "Red", 207 | hues: [ 208 | { name: 'dark-1', key: 'bo' }, 209 | { name: 'frame', key: 'cm' }, 210 | { name: 'light-1', key: 'rg' }, 211 | { name: 'light-2', key: 'pr' }, 212 | { name: 'active', key: 'vp' } 213 | ] 214 | } 215 | ] 216 | } 217 | ]; -------------------------------------------------------------------------------- /docs/components/README.md: -------------------------------------------------------------------------------- 1 | # Components 2 | 3 | This is a library of components which can be used in a LCARS themed site. They are intended to be reusable in most cases. but it is not guaranteed that all components will work together seamlessly. Components are inspired from a variety of sources. 4 | 5 | 6 | 9 | 12 | 13 | 14 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | 40 | 41 | 42 | 43 | 47 | 65 | 66 | 67 | ## Button Groups 68 | 69 | 70 | 87 | 88 | 89 | 90 | 114 | 115 | 116 | 117 | 146 | 147 | 148 | 149 | 186 | 187 | 188 | 189 | 193 | -------------------------------------------------------------------------------- /src/color.js: -------------------------------------------------------------------------------- 1 | export default { 2 | voyagerColors: [ 3 | { name: 'Blue-Gray', key: 'BG', code: '#99c' }, 4 | { name: 'Lightblue', key: 'LB', code: '#99f' }, 5 | { name: 'Lilac', key: 'FL', code: '#c9c' }, 6 | 7 | { name: 'Pink', key: 'PI', code: '#c69' }, 8 | { name: 'Light-Pink', key: 'LP', code: '#f9c' }, 9 | 10 | { name: 'Russet', key: 'RB', code: '#c66' }, 11 | { name: 'Apricot', key: 'AP', code: '#f96' }, 12 | 13 | { name: 'Beige', key: 'BE', code: '#fc9' }, 14 | { name: 'Light-Orange', key: 'HO', code: '#f7c64a' }, 15 | { name: 'Orange', key: 'OR', code: '#f90' } 16 | ], 17 | ussColors: [ 18 | { name: 'Blue-1', key: 'b1', code: '#9cf' }, 19 | { name: 'Blue-2', key: 'b2', code: '#39c' }, 20 | { name: 'Blue-3', key: 'b3', code: '#069' }, 21 | { name: 'Blue-4', key: 'b4', code: '#036' }, 22 | 23 | { name: 'Green-1', key: 'g1', code: '#cdb' }, 24 | { name: 'Green-2', key: 'g2', code: '#0c9' }, 25 | { name: 'Green-3', key: 'g3', code: '#099' }, 26 | { name: 'Green-4', key: 'g4', code: '#066' } 27 | ], 28 | paddColors: [ 29 | { name: 'golden-tanoi', key: 'p1', code: '#fc6' }, 30 | { name: 'cold-gray', key: 'p2', code: '#999' }, 31 | { name: 'chestnut-rose', key: 'p3', code: '#c66' }, 32 | { name: 'lilac', key: 'p4', code: '#c9c' }, 33 | { name: 'anakiwa', key: 'p5', code: '#9cf' }, 34 | { name: 'atomic-tangerine', key: 'p6', code: '#f90' } 35 | ], 36 | year2357Colors: [ 37 | { name: 'pale-canary', key: 'pc', code: '#ff9' }, 38 | { name: 'golden-tanoi', key: 'gt', code: '#fc6' }, 39 | { name: 'neon-carrot', key: 'nc', code: '#f93' }, 40 | { name: 'eggplant', key: 'ep', code: '#646' }, 41 | { name: 'lilac', key: 'lc', code: '#c9c' }, 42 | { name: 'anakiwa', key: 'ak', code: '#9cf' }, 43 | { name: 'mariner', key: 'mi', code: '#36c' }, 44 | { name: 'baltic-blue', key: 'bt', code: '#069' } 45 | ], 46 | year2369Colors: [ 47 | { name: 'blue-bell', key: 'bb', code: '#99c' }, 48 | { name: 'melrose', key: 'mr', code: '#99f' }, 49 | { name: 'lilac', key: 'lc', code: '#c9c' }, 50 | { name: 'hopbush', key: 'hb', code: '#c69' }, 51 | { name: 'chestnut-rose', key: 'cr', code: '#c66' }, 52 | { name: 'orange-peel', key: 'op', code: '#f96' }, 53 | { name: 'atomic-tangerine', key: 'at', code: '#f90' }, 54 | { name: 'golden-tanoi', key: 'gt', code: '#fc6' } 55 | ], 56 | year2375Colors: [ 57 | { name: 'danub', key: 'db', code: '#68c' }, 58 | { name: 'indigo', key: 'ig', code: '#45b' }, 59 | { name: 'lavender-purple', key: 'lr', code: '#97a' }, 60 | { name: 'cosmic', key: 'cs', code: '#746' }, 61 | { name: 'red-damask', key: 'rd', code: '#d64' }, 62 | { name: 'medium-carmine', key: 'ca', code: '#a53' }, 63 | { name: 'bourbon', key: 'br', code: '#b62' }, 64 | { name: 'sandy-brown', key: 'sb', code: '#e95' } 65 | ], 66 | year2379Colors: [ 67 | { name: 'periwinkle', key: 'pw', code: '#cdf' }, 68 | { name: 'dodger-blue', key: 'dg', code: '#59f' }, 69 | { name: 'dodger-blue-alt', key: 'dd', code: '#36f' }, 70 | { name: 'blue', key: 'bl', code: '#01e' }, 71 | { name: 'navy-blue', key: 'nb', code: '#008' }, 72 | { name: 'husk', key: 'hs', code: '#ba5' }, 73 | { name: 'rust', key: 'rs', code: '#b41' }, 74 | { name: 'tamarillo', key: 'tm', code: '#821' } 75 | ], 76 | odysseyNormalColors: [ 77 | { name: 'offline', key: 'bs', code: '#4d4d4d' }, 78 | { name: 'dark-1', key: 'cb', code: '#133d87' }, 79 | { name: 'frame', key: 'ib', code: '#2350b5' }, 80 | { name: 'light-1', key: 'ob', code: '#335da7' }, 81 | { name: 'light-2', key: 'eb', code: '#4a72ca' }, 82 | { name: 'active', key: 'vs', code: '#97c3e1' } 83 | ], 84 | odysseyGrayModeColors: [ 85 | { name: 'offline', key: 'bs', code: '#4d4d4d' }, 86 | { name: 'dark-1', key: 'd1', code: '#808080' }, 87 | { name: 'frame', key: 'fm', code: '#808080' }, 88 | { name: 'light-1', key: 'l1', code: '#808080' }, 89 | { name: 'light-2', key: 'l2', code: '#808080' }, 90 | { name: 'active', key: 'ac', code: '#ccc' }, 91 | ], 92 | odysseyBlueAlertColors: [ 93 | { name: 'offline', key: 'bs', code: '#4d4d4d' }, 94 | { name: 'dark-1', key: 'tb', code: '#00c' }, 95 | { name: 'frame', key: 'ur', code: '#03f' }, 96 | { name: 'light-1', key: 'mb', code: '#06f' }, 97 | { name: 'light-2', key: 'ab', code: '#4159ff' }, 98 | { name: 'active', key: 'vb', code: '#8d9bff' } 99 | ], 100 | odysseyYellowAlertColors: [ 101 | { name: 'offline', key: 'bs', code: '#4d4d4d' }, 102 | { name: 'dark-1', key: 'dr', code: '#664406' }, 103 | { name: 'frame', key: 'on', code: '#996509' }, 104 | { name: 'light-1', key: 'so', code: '#cc870c' }, 105 | { name: 'light-2', key: 'ag', code: '#ffa90f' }, 106 | { name: 'active', key: 'my', code: '#ffd966' } 107 | ], 108 | odysseyRedAlertColors: [ 109 | { name: 'offline', key: 'bs', code: '#4d4d4d' }, 110 | { name: 'dark-1', key: 'bo', code: '#600' }, 111 | { name: 'frame', key: 'cm', code: '#900' }, 112 | { name: 'light-1', key: 'rg', code: '#c00' }, 113 | { name: 'light-2', key: 'pr', code: '#f00' }, 114 | { name: 'active', key: 'vp', code: '#ff9191' } 115 | ], 116 | allColors: [ 117 | { name: 'black', key: 'black', font: '#ddd', code: '#000' }, 118 | { name: 'navy-blue', key: 'navy-blue', font: '#ddd', code: '#008' }, 119 | { name: 'strong-blue', key: 'strong-blue', font: '#000', code: '#00c' }, 120 | { name: 'pure-blue', key: 'pure-blue', font: '#000', code: '#00f' }, 121 | { name: 'blue', key: 'blue', font: '#000', code: '#01e' }, 122 | { name: 'dark-midnight-blue', key: 'dark-midnight-blue', font: '#ddd', code: '#036' }, 123 | { name: 'nearly-pure-blue', key: 'nearly-pure-blue', font: '#000', code: '#03f' }, 124 | { name: 'very-dark-cyan', key: 'very-dark-cyan', font: '#000', code: '#066' }, 125 | { name: 'baltic-blue', key: 'baltic-blue', font: '#000', code: '#069' }, 126 | { name: 'mostly-pure-blue', key: 'mostly-pure-blue', font: '#000', code: '#06f' }, 127 | { name: 'dark-cyan', key: 'dark-cyan', font: '#000', code: '#099' }, 128 | { name: 'carribean-green', key: 'carribean-green', font: '#000', code: '#0c9' }, 129 | { name: 'pure-green', key: 'pure-green', font: '#000', code: '#0f0' }, 130 | { name: 'monochrome-green-2', key: 'monochrome-green-2', font: '#000', code: '#0f3' }, 131 | { name: 'monochrome-green-3', key: 'monochrome-green-3', font: '#000', code: '#0f6' }, 132 | { name: 'cyan-blue', key: 'cyan-blue', font: '#000', code: '#133d87' }, 133 | { name: 'main-blue', key: 'main-blue', font: '#000', code: '#2350b5' }, 134 | { name: 'monochrome-black', key: 'monochrome-black', font: '#ddd', code: '#282828' }, 135 | { name: 'very-dark-red', key: 'very-dark-red', font: '#ddd', code: '#300' }, 136 | { name: 'dark-moderate-blue', key: 'dark-moderate-blue', font: '#000', code: '#335da7' }, 137 | { name: 'azure-blue', key: 'azure-blue', font: '#ddd', code: '#369' }, 138 | { name: 'mariner', key: 'mariner', font: '#000', code: '#36c' }, 139 | { name: 'dodger-blue-alt', key: 'dodger-blue-alt', font: '#000', code: '#36f' }, 140 | { name: 'bavaria-blue', key: 'bavaria-blue', font: '#000', code: '#39c' }, 141 | { name: 'monochrome-green-1', key: 'monochrome-green-1', font: '#000', code: '#3f0' }, 142 | { name: 'monochrome-apple', key: 'monochrome-apple', font: '#000', code: '#3f3' }, 143 | { name: 'saturated-blue', key: 'saturated-blue', font: '#000', code: '#4159ff' }, 144 | { name: 'indigo', key: 'indigo', font: '#000', code: '#45b' }, 145 | { name: 'moderate-blue', key: 'moderate-blue', font: '#000', code: '#4a72ca' }, 146 | { name: 'black-swan', key: 'black-swan', font: '#000', code: '#4d4d4d' }, 147 | { name: 'dodger-blue', key: 'dodger-blue', font: '#000', code: '#59f' }, 148 | { name: 'blood-red', key: 'blood-red', font: '#ddd', code: '#600' }, 149 | { name: 'dark-brown', key: 'dark-brown', font: '#000', code: '#664406' }, 150 | { name: 'eggplant', key: 'eggplant', font: '#ddd', code: '#646' }, 151 | { name: 'lead-gray', key: 'lead-gray', font: '#000', code: '#666' }, 152 | { name: 'danub', key: 'danub', font: '#000', code: '#68c' }, 153 | { name: 'cosmic', key: 'cosmic', font: '#000', code: '#746' }, 154 | { name: 'steel-gray', key: 'steel-gray', font: '#000', code: '#808080' }, 155 | { name: 'tamarillo', key: 'tamarillo', font: '#ddd', code: '#821' }, 156 | { name: 'very-light-blue', key: 'very-light-blue', font: '#000', code: '#8d9bff' }, 157 | { name: 'chelsea-gem', key: 'chelsea-gem', font: '#ddd', code: '#965032' }, 158 | { name: 'very-soft-blue', key: 'very-soft-blue', font: '#000', code: '#97c3e1' }, 159 | { name: 'crimson-red', key: 'crimson-red', font: '#ddd', code: '#900' }, 160 | { name: 'orange-brown', key: 'orange-brown', font: '#000', code: '#996509' }, 161 | { name: 'lavender-purple', key: 'lavender-purple', font: '#000', code: '#97a' }, 162 | { name: 'cold-gray', key: 'cold-gray', font: '#000', code: '#999' }, 163 | { name: 'anakiwa', key: 'anakiwa', font: '#000', code: '#9cf' }, 164 | { name: 'blue-bell', key: 'blue-bell', font: '#000', code: '#99c' }, 165 | { name: 'melrose', key: 'melrose', font: '#000', code: '#99f' }, 166 | { name: 'medium-carmine', key: 'medium-carmine', font: '#000', code: '#a53' }, 167 | { name: 'rust', key: 'rust', font: '#000', code: '#b41' }, 168 | { name: 'bourbon', key: 'bourbon', font: '#000', code: '#b62' }, 169 | { name: 'husk', key: 'husk', font: '#000', code: '#ba5' }, 170 | { name: 'free-speech-red', key: 'free-speech-red', font: '#ddd', code: '#c80000' }, 171 | { name: 'rangoon-red', key: 'rangoon-red', font: '#ddd', code: '#c00' }, 172 | { name: 'chestnut-rose', key: 'chestnut-rose', font: '#000', code: '#c66' }, 173 | { name: 'hopbush', key: 'hopbush', font: '#000', code: '#c69' }, 174 | { name: 'strong-orange', key: 'strong-orange', font: '#000', code: '#cc870c' }, 175 | { name: 'desaturated-red', key: 'desaturated-red', font: '#000', code: '#c99' }, 176 | { name: 'lilac', key: 'lilac', font: '#000', code: '#c9c' }, 177 | { name: 'chinese-silver', key: 'chinese-silver', font: '#000', code: '#ccc' }, 178 | { name: 'grayish-green', key: 'grayish-green', font: '#000', code: '#cdb' }, 179 | { name: 'periwinkle', key: 'periwinkle', font: '#000', code: '#cdf' }, 180 | { name: 'red-damask', key: 'red-damask', font: '#000', code: '#d64' }, 181 | { name: 'very-light-gray', key: 'very-light-gray', font: '#000', code: '#eee' }, 182 | { name: 'sandy-brown', key: 'sandy-brown', font: '#000', code: '#e95' }, 183 | { name: 'sunset-orange', key: 'sunset-orange', font: '#000', code: '#f55' }, 184 | { name: 'pure-red', key: 'pure-red', font: '#000', code: '#f00' }, 185 | { name: 'bittersweet', key: 'bittersweet', font: '#000', code: '#f66' }, 186 | { name: 'bright-coral', key: 'bright-coral', font: '#000', code: '#f77' }, 187 | { name: 'light-orange', key: 'light-orange', font: '#000', code: '#f7c64a' }, 188 | { name: 'very-light-red', key: 'very-light-red', font: '#000', code: '#f88' }, 189 | { name: 'very-light-pink', key: 'very-light-pink', font: '#000', code: '#ff9191' }, 190 | { name: 'atomic-tangerine', key: 'atomic-tangerine', font: '#000', code: '#f90' }, 191 | { name: 'neon-carrot', key: 'neon-carrot', font: '#000', code: '#f93' }, 192 | { name: 'orange-peel', key: 'orange-peel', font: '#000', code: '#f96' }, 193 | { name: 'pale-magenta', key: 'pale-magenta', font: '#000', code: '#f9c' }, 194 | { name: 'light-salmon-pink', key: 'light-salmon-pink', font: '#000', code: '#f99' }, 195 | { name: 'all-gold', key: 'all-gold', font: '#000', code: '#ffa90f' }, 196 | { name: 'patient-pink', key: 'patient-pink', font: '#000', code: '#faa' }, 197 | { name: 'amber', key: 'amber', font: '#000', code: '#ffb000' }, 198 | { name: 'pale-red', key: 'pale-red', font: '#000', code: '#fbb' }, 199 | { name: 'light-amber', key: 'light-amber', font: '#000', code: '#fc0' }, 200 | { name: 'golden-tanoi', key: 'golden-tanoi', font: '#000', code: '#fc6' }, 201 | { name: 'peach-orange', key: 'peach-orange', font: '#000', code: '#fc9' }, 202 | { name: 'light-red', key: 'light-red', font: '#000', code: '#fcc' }, 203 | { name: 'medium-yellow', key: 'medium-yellow', font: '#000', code: '#ffd966' }, 204 | { name: 'very-pale-red', key: 'very-pale-red', font: '#000', code: '#fdd' }, 205 | { name: 'laser-lemon', key: 'laser-lemon', font: '#000', code: '#ff6' }, 206 | { name: 'pale-canary', key: 'pale-canary', font: '#000', code: '#ff9' }, 207 | { name: 'white', key: 'white', font: '#000', code: '#fff' }, 208 | ] 209 | }; -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | --------------------------------------------------------------------------------