@timus-networks/theme
A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.
20,127
| Install | |
|---|---|
npm install @timus-networks/theme |
|
| Latest Version: | 2.4.291 |
| Vue: | 3 |
| Older releases: | 1 · 2 |
| License: | MIT |
| Last Updated: | Jun 22, 2026 |
| Links: | Bitbucket · npm |
Maintainer: polatahmet
@timus-networks/fonts
Nuxt module for Theme Installation.
Table of Contents
Installation
To install this module, you can use npm or yarn:
npm
npm install @timus-networks/theme
yarn
yarn add @timus-networks/theme
Usage
- To use this module in your Nuxt 3 project, add it to your
nuxt.config.ts:
export default defineNuxtConfig({
modules: ['@timus-networks/theme'],
});
- Add below code to your tailwind.config.js file
// tint & shade color generator
function generateColors(baseName, start = 1, end = 9, step = 1) {
const colors = {};
for (let i = start; i <= end; i += step) {
colors[i] = `var(--el-color-${baseName}-light-${i})`;
}
return colors;
}
const colorNames = ['primary', 'secondary', 'neutral', 'danger', 'success', 'warning', 'info'];
const colorShades = [1, 2, 3, 4, 5, 6, 7, 8, 9];
const classPrefixes = ['bg', 'text', 'border'];
const colors = colorNames.reduce((acc, color) => ({ ...acc, [`${color}`]: generateColors(color, 1, 9) }), {});
module.exports = {
// content: ['./pages/**/*.{vue,html}', './components/**/*.{vue,html}', './layouts/**/*.{vue,html}', './modules/**/*.{vue,html}'],
content: ['./modules/**/*.{vue,html}'],
theme: {
extend: {
colors,
spacing: {
default: '30px',
7.5: '30px', // 30px için özel bir sınıf ekliyoruz
},
},
},
plugins: [
function ({ addUtilities, theme, e }) {
const gridCols = theme('gridTemplateColumns');
const utilities = Object.entries(gridCols).map(([key, value]) => ({
[`.${e(`grid-cols-${key}`)}`]: {
'grid-template-columns': value,
gap: '30px', // Burada varsayılan boşluğu ayarlıyoruz
},
}));
addUtilities(utilities);
},
],
safelist: classPrefixes.flatMap((prefix) => colorNames.flatMap((color) => colorShades.map((i) => `${prefix}-${color}-${i}`))),
};
Scripts
The following npm scripts are available:
test: Run tests using Vitest.test:watch: Run tests in watch mode.test:types: Check TypeScript types.lint:prettier: Lint code using Prettier.lint:eslint: Lint code using ESLint.lint:stylelint: Lint styles using Stylelint.fix: Fix linting errors.prepack: Run the prepack script.pub: Publish the module.release: Release a new version.
Contributing
If you would like to contribute, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes.
- Push your branch and create a pull request.
License
This project is licensed under the MIT License.
Related Packages
@berqnet/theme
A comprehensive Nuxt.js module providing a tailored theme experience with integr...
165
nuxt-facebook-chat
Effortless integration of Facebook's Customer Chat SDK into Nuxt 3. Enhance user...
1,874
7
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.4.291 | ^3.x | MIT | |
| 2.4.290 | ^3.x | MIT | |
| 2.4.288 | ^3.x | MIT | |
| 2.4.286 | ^3.x | MIT | |
| 2.4.285 | ^3.x | MIT | |
| 2.4.284 | ^3.x | MIT | |
| 2.4.283 | ^3.x | MIT | |
| 2.4.282 | ^3.x | MIT | |
| 2.4.281 | ^3.x | MIT | |
| 2.4.280 | ^3.x | MIT | |
| 2.4.278 | ^3.x | MIT | |
| 2.4.276 | ^3.x | MIT | |
| 2.4.275 | ^3.x | MIT | |
| 2.4.274 | ^3.x | MIT | |
| 2.4.273 | ^3.x | MIT | |
| 2.4.271 | ^3.x | MIT | |
| 2.4.270 | ^3.x | MIT | |
| 2.4.269 | ^3.x | MIT | |
| 2.4.268 | ^3.x | MIT | |
| 2.4.267 | ^3.x | MIT | |
| 2.4.266 | ^3.x | MIT | |
| 2.4.265 | ^3.x | MIT | |
| 2.4.264 | ^3.x | MIT | |
| 2.4.263 | ^3.x | MIT | |
| 2.4.262 | ^3.x | MIT | |
| 2.4.261 | ^3.x | MIT | |
| 2.4.260 | ^3.x | MIT | |
| 2.4.259 | ^3.x | MIT | |
| 2.4.258 | ^3.x | MIT | |
| 2.4.256 | ^3.x | MIT |
Showing the latest 30 of 441. See every release on npm