mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
# Description of Changes
- **What was changed**
- Added missing trailing semicolons across React components, utilities,
tests, and build/test configs to ensure consistent formatting.
- Normalized arrow-function assignments to end with semicolons (e.g.,
`const fn = () => { ... };`).
- Harmonized imports/exports and object literals in configuration files
to terminate statements with semicolons.
- Updated test setup files and mocks to consistently use semicolons.
- **Why the change was made**
- Aligns the codebase with ESLint/Prettier conventions to prevent
auto-format churn and avoid ASI (automatic semicolon insertion) edge
cases.
- Improves readability and produces cleaner diffs in future
contributions.
---
## Checklist
### General
- [ ] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md)
(if applicable)
- [ ] I have performed a self-review of my own code
- [ ] My changes generate no new warnings
### Documentation
- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)
### UI Changes (if applicable)
- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)
### Testing (if applicable)
- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing)
for more details.
---------
Co-authored-by: Reece Browne <74901996+reecebrowne@users.noreply.github.com>
85 lines
2.8 KiB
JavaScript
85 lines
2.8 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: [
|
|
"./index.html",
|
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
],
|
|
darkMode: ['class', '[data-mantine-color-scheme="dark"]'],
|
|
theme: {
|
|
extend: {
|
|
// Use standard Tailwind color system with CSS variables for theme switching
|
|
colors: {
|
|
// Override gray to work with both themes
|
|
gray: {
|
|
50: 'rgb(var(--gray-50) / <alpha-value>)',
|
|
100: 'rgb(var(--gray-100) / <alpha-value>)',
|
|
200: 'rgb(var(--gray-200) / <alpha-value>)',
|
|
300: 'rgb(var(--gray-300) / <alpha-value>)',
|
|
400: 'rgb(var(--gray-400) / <alpha-value>)',
|
|
500: 'rgb(var(--gray-500) / <alpha-value>)',
|
|
600: 'rgb(var(--gray-600) / <alpha-value>)',
|
|
700: 'rgb(var(--gray-700) / <alpha-value>)',
|
|
800: 'rgb(var(--gray-800) / <alpha-value>)',
|
|
900: 'rgb(var(--gray-900) / <alpha-value>)',
|
|
},
|
|
green: {
|
|
50: 'var(--color-green-50)',
|
|
100: 'var(--color-green-100)',
|
|
200: 'var(--color-green-200)',
|
|
300: 'var(--color-green-300)',
|
|
400: 'var(--color-green-400)',
|
|
500: 'var(--color-green-500)',
|
|
600: 'var(--color-green-600)',
|
|
700: 'var(--color-green-700)',
|
|
800: 'var(--color-green-800)',
|
|
900: 'var(--color-green-900)',
|
|
},
|
|
yellow: {
|
|
50: 'var(--color-yellow-50)',
|
|
100: 'var(--color-yellow-100)',
|
|
200: 'var(--color-yellow-200)',
|
|
300: 'var(--color-yellow-300)',
|
|
400: 'var(--color-yellow-400)',
|
|
500: 'var(--color-yellow-500)',
|
|
600: 'var(--color-yellow-600)',
|
|
700: 'var(--color-yellow-700)',
|
|
800: 'var(--color-yellow-800)',
|
|
900: 'var(--color-yellow-900)',
|
|
},
|
|
red: {
|
|
50: 'var(--color-red-50)',
|
|
100: 'var(--color-red-100)',
|
|
200: 'var(--color-red-200)',
|
|
300: 'var(--color-red-300)',
|
|
400: 'var(--color-red-400)',
|
|
500: 'var(--color-red-500)',
|
|
600: 'var(--color-red-600)',
|
|
700: 'var(--color-red-700)',
|
|
800: 'var(--color-red-800)',
|
|
900: 'var(--color-red-900)',
|
|
},
|
|
// Custom semantic colors for app-specific usage
|
|
surface: 'rgb(var(--surface) / <alpha-value>)',
|
|
background: 'rgb(var(--background) / <alpha-value>)',
|
|
border: 'rgb(var(--border) / <alpha-value>)',
|
|
},
|
|
|
|
// Z-index scale
|
|
zIndex: {
|
|
'dropdown': '1000',
|
|
'sticky': '1020',
|
|
'fixed': '1030',
|
|
'modal-backdrop': '1040',
|
|
'modal': '1050',
|
|
'popover': '1060',
|
|
'tooltip': '1070',
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
// Enable preflight for standard Tailwind functionality
|
|
corePlugins: {
|
|
preflight: true,
|
|
},
|
|
};
|