feat: theme and resources

This commit is contained in:
2025-11-30 11:42:28 +01:00
parent 804a3469b0
commit f81f866fab
37 changed files with 4200 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{
"type": "module",
"scripts": {
"build": "node update_icons.js"
},
"dependencies": {
"feather-icons": "^4.29.2",
"simple-icons": "^13.14.0"
}
}

View File

@@ -0,0 +1,23 @@
import fs from 'fs'
import path from 'path'
import * as simpleIcons from 'simple-icons'
import { icons as featherIcons } from 'feather-icons'
const icons = {};
for (const key in featherIcons) {
const icon = featherIcons[key]
icons[icon.name] = `<svg class="icon icon-${icon.name}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><title>${icon.name}</title>${icon.contents}</svg>`
}
for (const key in simpleIcons) {
const icon = simpleIcons[key]
icons['brand-' + icon.slug] = `<svg class="icon icon-brand-${icon.slug}" viewBox="0 0 24 24" fill="currentColor"><title>${icon.title}</title><path d="${icon.path}"/></svg>`
}
fs.writeFileSync(
path.join(import.meta.dirname, '../../data/m10c/icons.json'),
JSON.stringify(icons, null, 2),
'utf8',
)

View File

@@ -0,0 +1,26 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
classnames@^2.2.5:
version "2.5.1"
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.5.1.tgz#ba774c614be0f016da105c858e7159eae8e7687b"
integrity sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==
core-js@^3.1.3:
version "3.38.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.38.1.tgz#aa375b79a286a670388a1a363363d53677c0383e"
integrity sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw==
feather-icons@^4.29.2:
version "4.29.2"
resolved "https://registry.yarnpkg.com/feather-icons/-/feather-icons-4.29.2.tgz#b03a47588a1c400f215e884504db1c18860d89f8"
integrity sha512-0TaCFTnBTVCz6U+baY2UJNKne5ifGh7sMG4ZC2LoBWCZdIyPa+y6UiR4lEYGws1JOFWdee8KAsAIvu0VcXqiqA==
dependencies:
classnames "^2.2.5"
core-js "^3.1.3"
simple-icons@^13.14.0:
version "13.14.0"
resolved "https://registry.yarnpkg.com/simple-icons/-/simple-icons-13.14.0.tgz#5b6d9eaf739b4a55d3ece0548247b5ba69621d65"
integrity sha512-eUl/xnY9/BN/UPthZYi5tPQtHFxbqxO0lS/nMaG2QJAXRzXqLWnQHoJZdrV4+TZ2tb7JO3qqFCkg8UVVgTuKOQ==

View File

@@ -0,0 +1,8 @@
#!/bin/sh
pushd `dirname "$0"`/icons
yarn install
yarn build
popd