Skip to content

Commit 703d6f2

Browse files
committed
Update README removing references to bootstrap
1 parent c0cf81c commit 703d6f2

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

README.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,23 +150,13 @@ export function App() {
150150

151151
### Styles
152152

153-
Currently, this component depends on `bootstrap`, `@shlinkio/shlink-frontend-kit` and its own stylesheets for proper styling, although bootstrap is being replaced by `tailwind`.
154-
155-
Make sure you import stylesheets in the order documented here for everything to work.
156-
157-
```scss
158-
// src/index.scss
159-
@use 'node_modules/@shlinkio/shlink-frontend-kit/dist/base'; // Before bootstrap stylesheet
160-
@use 'node_modules/bootstrap/scss/bootstrap.scss' with (
161-
$primary: base.$mainColor // Override bootstrap's primary color
162-
);
163-
@use 'node_modules/@shlinkio/shlink-frontend-kit/dist/index'; // After bootstrap. Includes CSS overrides
164-
@use 'node_modules/@shlinkio/shlink-web-component/dist/index' as c-index;
165-
```
153+
Currently, this component depends on `tailwind` and `@shlinkio/shlink-frontend-kit` for proper styling.
154+
155+
Make sure you import stylesheets as documented here for everything to work.
166156

167157
```css
168158
/* src/tailwind.css */
169-
@import 'tailwindcss' prefix(tw);
159+
@import 'tailwindcss';
170160

171161
/* Add these three lines */
172162
@source '../node_modules/@shlinkio/shlink-frontend-kit';
@@ -180,8 +170,7 @@ import type { Theme } from '@shlinkio/shlink-frontend-kit';
180170
import { Checkbox, changeThemeInMarkup } from '@shlinkio/shlink-frontend-kit';
181171
import { ShlinkWebComponent } from '@shlinkio/shlink-web-component';
182172
import { useCallback, useState } from 'react';
183-
import './src/index.scss'; // The stylesheet above
184-
import './src/tailwind.css'; // The Tailwind stylesheet above
173+
import './src/tailwind.css'; // The stylesheet above
185174

186175
export function App() {
187176
const [theme, setTheme] = useState<Theme>('light');

src/short-urls/UseExistingIfFoundInfoIcon.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ const InfoModal = (props: { open: boolean; onClose: () => void }) => (
3737

3838
export const UseExistingIfFoundInfoIcon = () => {
3939
const { flag: isModalOpen, setToFalse: closeModal, setToTrue: openModal } = useToggle();
40-
41-
// TODO Replace native title with bootstrap tooltip + aria-label for accessibility
4240
return (
4341
<>
4442
<UnstyledButton title="What does this mean?" onClick={openModal}>

vite.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ export default defineConfig({
2929
},
3030
},
3131

32-
css: {
33-
preprocessorOptions: {
34-
scss: {
35-
// Silence annoying sass deprecation warnings until we get rid of bootstrap
36-
silenceDeprecations: ['mixed-decls', 'abs-percent', 'color-functions', 'global-builtin', 'import'],
37-
},
38-
},
39-
},
40-
4132
server: {
4233
watch: {
4334
ignored: ['**/dist/**', '**/.idea/**', '**/node_modules/**', '**/.git/**', '**/test/**'],

0 commit comments

Comments
 (0)