You can use wp_add_inline_style() to add to a stylesheet that you’ve already defined, such as in your plugin. This way an options screen or other user settings can affect the final style output.
That could become very tedious, however, depending on how many changes you are giving the user the power over. However, it is the “best practice” as far as I know.
Related Posts:
- What are the standard admin CSS id/class tags?
- WordPress admin stylesheet
- How do I load a CSS style into WordPress admin area only?
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Load plugin scripts and styles only on plugin page
- Settings API – easiest way of validating checkboxes?
- WordPress Admin back-end – advanced options page?
- How to fix admin stylesheet muck-up? [closed]
- Custom CSS In Admin Only For Certain Roles
- How To View Site from Non-Logged-In User’s Perspective
- Modify CSS via Theme Control Panel
- wp_dropdown_pages() in theme admin page
- Why are my styles being applied to the admin area?
- Adding another “Add Post” button to admin
- How can I show the contents of only a few users
- Settings API not saving values to database
- Enqueue and Dequeue from admin bar nodes
- admin_enqueue_scripts the same css file as wp_enqueue_style
- Admin option sidebar count
- Fixed layout for admin section
- Problem with Settings API: changes are not saved after submit
- Add Custom Script in Other Plugin’s Options page
- Accessing variable from admin panel?
- How can I POST or GET to the same admin page from which I am POST-ing or GET-ing
- WordPress admin toolbar not loading styles after migration
- Passing dynamic options from backend to frontend
- WordPress custom admin functions security
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- Black admin bar is being hidden by page elements
- [Multisite]How can I update custom blog option?
- Call require_once form admin page with checkbox
- Get Link of Page Selected through a Select Field in Custom Admin Page
- WordPress Admin Thickbox: Remove Margins/Padding
- My code for creating an admin option doesn’t work
- I don’t have permission to save the theme options I created myself?
- Pull Random Images From Options Page [closed]
- Woo Commerce Settings for Check-out Form [closed]
- Adding a custom admin page
- Settings API – adding setting fields dynamically?
- How to disable the “Your site has updated to WordPress x.y.z” admin email?
- Send Admin Emails to Multiple Email Addresses
- How to remove administrator role in settings -> general -> New User Default Role?
- front end logo upload like happytables
- How to show custom menu items in the WordPress android app?
- Modify built-in post type properties
- How can I include JavaScript that use jQuery on admin side
- WordPress – wp-admin subdomain
- Admin pages have no content
- Make certain pages uneditable by editors?
- How to Edit the Order of Global Colors in Elementor? [closed]
- wp-admin: Sort users by surname
- Add User meta fields, which only admin can edit
- How do I fix “You are not allowed to edit this item.” for Admins on existing posts?
- WordPress Plugin Look & Feel
- Modify links under ‘help section’?
- Having admin on different host breaks attached images
- Admin area ‘toggle’ w/ cookie
- Remove default subpages from Custom Post Menu
- wp.template() Not a function
- get user list in admin area
- Need help cleaning up a wordpress site after being hacked
- Showing Post Counts of One’s (Author) Own in the admin post list
- admin_enqueue_scripts not working
- When admin changes a password for a registered user, I don’t want to send a password change email to users
- Add last Revision of Post column on Admin Panel
- How do you handle postmeta in admin area?
- Admin – Load existing admin template as a submenu page
- Admin interface problems – thickbox? jquery?
- Restricting access to a single MultiSite site based on IP — possible?
- admin : search custom fields
- Admin cannot publish
- Activate Gallery Options in Media Uploader for Custom Usage
- How Can I Found Admin Directory
- Can I host WP-admin locally for a remote blog?
- add_cap for editor but no admin role
- /wp-admin/install.php redirecting to 123-reg
- Home page is redirecting to another page – no obvious reason
- Admin Panel Development [closed]
- Why does Thickbox jQuery load on my site?
- How to include stylesheet in custom admin using parent_slug
- How should I change the username of or delete the admin user?
- Prevent Registration Where Role is None?
- Extending the user profile [closed]
- Allow custom REST route to return before doing long operation
- WordPress – add help text under category list(right side) in post edit page
- Show only content in page after action click in WordPress admin
- WordPress4.1.15 Dashboard links not working
- Admins loggin in to our wordpress site default to the admin page
- ‘Conflict’ with action deleted_post and is_admin()
- Downloading file from wp-admin folder
- Dropdown list of available posts for post editing
- Add Sort Link in Custom Post Type List
- TinyMCE buttons broken
- local WAMP admin user has lost privileges
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- Cant enter admin page with SSL
- 2FA for admin login only, is it doable?
- Add a user to edit the layout of a site
- CSS Styles specific to Admin Sidebar not loading
- Display notice in block editor after wp_insert_post_data hook