Skip to content

Commit

Permalink
Albers, Anuszkiewicz, Kiefer & Khalil
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn committed Dec 26, 2023
1 parent 48ce6f6 commit 4880572
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: '20.x'
- run: npm ci
- run: npm test

Expand All @@ -25,10 +25,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: '@nclslbrn'
node-version: '20.x'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7 changes: 4 additions & 3 deletions demo/index.html

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion demo/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ footer p {

#app .palette-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-gap: 2em;
}

Expand Down Expand Up @@ -140,3 +140,13 @@ footer p {
flex-basis: 3em;
margin: 0.33em;
}

footer > p {
display: flex;
align-items: flex-end;
justify-content: center;
}

footer > p > * {
margin: 0 0.4em;
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
},
"publishConfig": {
"provenance": true,
"registry": "https://npm.pkg.github.com/"
"registry": "https://registry.npmjs.org"
},
"engines": {
"node": ">=16.2"
}
}
}
38 changes: 38 additions & 0 deletions src/artists/a.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { type Scheme } from '../index';

export default [
{
meta: {
title: 'Repetition Against Blue',
artist: 'Josef Albers',
year: '1943',
techniques: 'Oil',
},
background: '#dbdbce',
colors: ['#263463', '#7e7e7e', '#abada9', '#646c7d', '#9c9c98'],
stroke: '#a5a69c',
temp: 'warm',
theme: 'dark',
},
{
meta: {
title: 'Untitled 1',
artist: 'Richard Anuszkiewicz',
year: '1991',
techniques: 'Silkscreen',
},
background: '#f2eed6',
colors: [
'#27503e',
'#eb3340',
'#a98b57',
'#834d26',
'#44ac81',
'#4b8794',
'#c65d5c',
],
stroke: '#cc6c74',
temp: 'neutral',
theme: 'bright',
},
] as Scheme[];
35 changes: 35 additions & 0 deletions src/artists/k.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,41 @@ export default [
temp: 'warm',
theme: 'bright',
},
{
meta: {
title:
'The Wedding of Princess Mihr and Nahid. From a "Mihr-u Mushtari" by Muhammad Assar Tabrizi',
artist: 'Ibrahim Khalil',
year: '1523',
techniques: 'Unknown',
},
background: '#363c47',
colors: [
'#c9966f',
'#d9cdb7',
'#656551',
'#8ba4b5',
'#8b2e21',
'#9d5227',
'#927458',
],
stroke: '#e8c484',
temp: 'neutral',
theme: 'bright',
},
{
meta: {
title: 'Walhalla',
artist: 'Anselm Kiefer',
year: '2016',
techniques: 'Acrylic, emulsion, shellac and clay',
},
background: '#312826',
colors: ['#433228', '#656462', '#bfc0bb'],
stroke: '#9f7242',
temp: 'warm',
theme: 'dark',
},
{
meta: {
title: 'Fire evening',
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface DefaultArgs extends Args {
artist: string;
}

import a from './artists/a';
import b from './artists/b';
import c from './artists/c';
import d from './artists/d';
Expand All @@ -45,6 +46,7 @@ import t from './artists/t';
import v from './artists/v';

const palettes: Scheme[] = [
...a,
...b,
...c,
...d,
Expand Down

0 comments on commit 4880572

Please sign in to comment.