Skip to content

Commit

Permalink
feat(theme): Add new modern theme
Browse files Browse the repository at this point in the history
Intent to ship new 'modern' theme
  • Loading branch information
netil committed Oct 19, 2023
1 parent 18b2b66 commit b0f1aa7
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ You can download the compressed files for production
- https://naver.github.io/billboard.js/release/latest/dist/theme/datalab.css
- https://naver.github.io/billboard.js/release/latest/dist/theme/datalab.min.css


#### dark
- https://naver.github.io/billboard.js/release/latest/dist/theme/dark.css
- https://naver.github.io/billboard.js/release/latest/dist/theme/dark.min.css
Expand All @@ -111,6 +110,10 @@ You can download the compressed files for production
- https://naver.github.io/billboard.js/release/latest/dist/theme/graph.css
- https://naver.github.io/billboard.js/release/latest/dist/theme/graph.min.css

#### modern
- https://naver.github.io/billboard.js/release/latest/dist/theme/modern.css
- https://naver.github.io/billboard.js/release/latest/dist/theme/modern.min.css

</details>

### Nightly version
Expand Down
4 changes: 4 additions & 0 deletions config/webpack/development.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ module.exports = (common, env) => {
config.entry = plugin.entry;
config.output = plugin.output;
config.externals = plugin.externals;
} else {
config.entry = {
billboard: "./src/index.ts"
};
}

return env.PLUGIN ? mergeWithCustomize({
Expand Down
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ <h2 class="sidebar-brand">billboard.js</h2>
<option value="dark">dark</option>
<option value="insight">insight</option>
<option value="graph">graph</option>
<option value="modern">modern</option>
</select>
</form>
<p id="launch" title="To open as new window, hold the 'Alt(Win)/option(Mac)' key while clicking.">
Expand Down
3 changes: 2 additions & 1 deletion demo/themes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ <h1>Themes Colors</h1>
insight: "#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;",
graph: "#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;",
datalab: "#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;",
dark: "#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;"
dark: "#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;",
modern: "#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;"
}

let html = "";
Expand Down
Loading

0 comments on commit b0f1aa7

Please sign in to comment.