0.1.7 • Published 9 months ago

dt-scss v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

dt-scss

Simple package to create themes for Discord using SCSS.

Usage

Install the package with:

npm install dt-scss
# or
yarn add dt-scss
# or
pnpm add dt-scss

Then create a dt-scss.config.js file in the root of your project folder with the following:

/** @type {import('dt-scss/lib/config').Config} */
export default {
	meta: {
		name: 'Nicetheme',
		author: 'DiscordStyler',
		version: '1.0.0',
		description: 'My cool theme',
		source: 'https://github.com/DiscordStyler/Nicetheme',
	},
};

NOTE: If you have multiple themes, create a dt-scss.config.js in every theme folder.

And then use the dt-scss command followed by the script you wish to use.

dt-scss build [themeName] [srcDir] # will build the necessary files to distribute your theme(s).

NOTE: Make sure you have "type": "module" set in your package.json.

Compiler API

PropertyTypeRequiredDescription
metaObjecttrueThe BetterDiscord theme/plugin META. View all avaiable meta HERE
distObjectfalseThe target and output path of the dist file.
baseObjectfalseThe target and output path of the base file.
fileNamestringfalseThe name of the file to be compiled. This will default to your meta.name if this option is not provided.
addons(string, string)[]falseAny addons that should be compiled separately from your theme files.
baseImportstringfalseThe @import url used in the .theme.css file.

All dist and base objects contain a target and output properties, and are relative to the project directory.

License

See the LICENSE file for license rights and limitations (MIT).

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago