Skip to content

Commit 65f8dc8

Browse files
committed
add all skins to palette picker
1 parent 18fe8e9 commit 65f8dc8

File tree

1 file changed

+179
-0
lines changed

1 file changed

+179
-0
lines changed

config/backpack/theme-tabler.php

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Theme Configuration Values
7+
|--------------------------------------------------------------------------
8+
|
9+
| The file provides extra configs on top of config/backpack/ui.php
10+
|
11+
| Any value set here will override the ones defined in
12+
| config/backpack/ui.php when this theme is in use.
13+
|
14+
*/
15+
16+
/**
17+
* 1st layer of customization
18+
*
19+
* Simple pick a layout and let Backpack decide the best look for it.
20+
* No extra step is required.
21+
*
22+
* Possible values: horizontal, horizontal_dark, horizontal_overlap, vertical,
23+
* vertical_dark, vertical_transparent (legacy theme), right_vertical, right_vertical_dark, right_vertical_transparent
24+
*/
25+
'layout' => 'horizontal',
26+
27+
/**
28+
* Pick a login page layout.
29+
* Possible values: default, illustration, cover
30+
*/
31+
'auth_layout' => 'default', // default, illustration, cover
32+
33+
/**
34+
* Here you can easily load your own extra css styles.
35+
* Note: if you want to customize the style to create your own custom skin colors:
36+
* - make a copy of the file "vendor/backpack/theme-tabler/resources/assets/css/colors.css" into your project
37+
* - adjust colors variables as you wish
38+
* - replace "base_path('vendor/backpack/theme-tabler/resources/assets/css/backpack-color-palette.css')," with the path to the file created above
39+
* - boom!
40+
*/
41+
'styles' => [
42+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/backpack-color-palette.css'),
43+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/glass.css'),
44+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/fuzzy-background.css'),
45+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/vertical-lines-background.css'),
46+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/pinstripe-background.css'),
47+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/paper-background.css'),
48+
base_path('vendor/backpack/theme-tabler/resources/assets/css/skins/dotted-background.css'),
49+
],
50+
51+
/**
52+
* 2nd Layer of customization
53+
*
54+
* If you need to further customize the way your panel looks,
55+
* these options will help you achieve that.
56+
*/
57+
'options' => [
58+
/**
59+
* The available color modes.
60+
*/
61+
'colorModes' => [
62+
'system' => 'la-desktop',
63+
'light' => 'la-sun',
64+
'dark' => 'la-moon',
65+
],
66+
67+
/**
68+
* The color mode used by default.
69+
*/
70+
'defaultColorMode' => 'system', // system, light, dark
71+
72+
/**
73+
* When true, a switch is displayed to let admins choose their favorite theme mode.
74+
* When false, the theme will only use the "defaultColorMode" set above.
75+
* In case "defaultColorMode" is null, system is the default.
76+
*/
77+
'showColorModeSwitcher' => true,
78+
79+
/**
80+
* Fix the top-header component (present in "vertical_transparent") and the menu when the layout type is set as "horizontal".
81+
* This value is skipped when the layout type is horizontal-overlap, using false as default.
82+
*/
83+
'useStickyHeader' => false,
84+
85+
/**
86+
* When true, the content area will take the whole screen width.
87+
*/
88+
'useFluidContainers' => true,
89+
90+
/**
91+
* When true, the sidebar content for vertical layouts will not scroll with the rest of the content.
92+
*/
93+
'sidebarFixed' => false,
94+
95+
/**
96+
* When true, horizontal layouts will display the classic top bar on top to free some space when multiple nav items are used.
97+
*/
98+
'doubleTopBarInHorizontalLayouts' => false,
99+
100+
/**
101+
* When true, the password input will have a toggle button to show/hide the password.
102+
*/
103+
'showPasswordVisibilityToggler' => false,
104+
],
105+
106+
/**
107+
* 3rd Layer of customization
108+
*
109+
* In case the first two steps were not enough, here you have full control over
110+
* the classes that make up the look of your panel.
111+
*/
112+
'classes' => [
113+
/**
114+
* Use this to pass classes to the <body> HTML element, on all pages.
115+
*/
116+
'body' => null,
117+
118+
/**
119+
* For background colors use:
120+
* bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue,
121+
* bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white.
122+
*
123+
* For links to be visible on different background colors use: "navbar-dark", "navbar-light".
124+
*
125+
*/
126+
'topHeader' => null,
127+
128+
/**
129+
* Applies only for Vertical Menu Layout
130+
* For standard sidebar look (transparent):
131+
* - Remove "navbar-dark/light"
132+
* - Remove "navbar-light/dark" from 'classes.topHeader' and instead use "bg-light"
133+
* You can also add a background class like bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success,
134+
* bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan
135+
*/
136+
'sidebar' => null,
137+
138+
/**
139+
* Used in the top container menu when the layout is of horizontal type.
140+
*/
141+
'menuHorizontalContainer' => null,
142+
143+
/**
144+
* Used in the top menu content when the layout is of horizontal type.
145+
*/
146+
'menuHorizontalContent' => null,
147+
148+
/**
149+
* Make transparent with footer-transparent.
150+
* Hide it with d-none.
151+
*
152+
* Change background color with bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info,
153+
* bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white.
154+
*/
155+
'footer' => null,
156+
157+
/**
158+
* Use this to pass classes to the table displayed in List Operation
159+
* It defaults to: "table table-striped table-hover nowrap rounded card-table table-vcenter card-table shadow-xs border-xs"
160+
*/
161+
'table' => null,
162+
163+
/**
164+
* Use this to pass classes to the table wrapper component displayed in List Operation
165+
*/
166+
'tableWrapper' => null,
167+
],
168+
169+
/**
170+
* 4th Layer of customization
171+
*
172+
* Alright, if nothing so far met your need, then you still have an easy way to build
173+
* a custom layout using the already existing components of this theme.
174+
*
175+
* 1. Create a new blade file in resources/views/layouts/your-custom-layout.blade.php
176+
* 2. Replace the value of layout on this file with "your-custom-layout"
177+
* 3. Customize the blade and place components such as sidebar, header, top-bar, where you need them!
178+
*/
179+
];

0 commit comments

Comments
 (0)