To create a work area that contains a copy of the Default
theme as a basis for your new theme, use one of the following scripts
provided in the
SAS-config-dir\Lev1\Web\Utilities\SASThemeExtensions
directory:
-
for Windows:
NewTheme.bat theme-name true
-
for UNIX and
z/OS:
NewTheme.sh theme-name true
To use the Color Palette
option, the
true
parameter is required
in the command.
Note: The theme name must not contain
spaces.
The following figure
shows the
theme-name directory,
which is the root directory for theme resources. The
\theme-name\MetadataTools
directory
contains SAS programs for managing the theme. The
Velocity
directory
contains several subdirectories with files.
The following figure
shows the subdirectory structure that is created under the
SAS-config-dir\Lev1\Web\Utilities\SASThemeExtensions\themes\
theme-name\themes\
theme-name directory.
Here is an explanation
of the folders and their contents:
\theme-name\themes\theme-name\images
contains the standard
collection of images for SAS Web applications that use the theme infrastructure.
The images are divided into the following subdirectories by category:
Common
contains images that
are commonly used in SAS Web applications.
Components
contains images for
the collection of components (widgets) that are shared by SAS Web
applications.
WRS
contains images for
SAS Web Report Studio.
\theme-name\themes\theme-name\styles
contains a cascading
style sheet file named custom.css
that
can be used to define additional style elements for the theme. This
file is empty when the work area is created.
\theme-name\themes\theme-name\templates
contains theme templates,
which are HTML fragments that render specific portions of pages in
SAS Web applications. The template files are divided into the following
subdirectories by category:
Common
contains theme templates
for page elements that are commonly used in SAS Web applications.
Components
contains theme templates
for the collection of components that are shared by SAS Web applications.
WRS
contains theme templates
for elements in SAS Web Report Studio pages.
The following figure
shows the subdirectories below the
SAS-config-dir\Lev1\Web\Utilities\SASThemeExtensions\themes\theme-name\Velocity
directory.
Here is an explanation
of the contents of the directories:
\theme-name\Velocity\Stylesheets\_shared\contexts\themes
contains a context
file named theme-name.vctxt
that
defines context values for font families and standard colors that
can be used in CSS templates.
\theme-name\Velocity\Stylesheets\Common\contexts\themes\theme-name
contains CSS template
files that are used to build style sheets for page elements that are
commonly used in SAS Web applications, including portal.
theme-name.vtl
, sasStyle.
theme-name.vtl
,
and sasScorecard.
theme-name.vtl
.
\theme-name\Velocity\Stylesheets\Components\contexts\themes\theme-name
contains a CSS template
file named components.
theme-name.vtl
that
is used to build style sheets for the collection of components that
are shared by SAS Web applications.
\theme-name\Velocity\Stylesheets\WRS\contexts\themes\theme-name
contains a CSS template
file named wrs.
theme-name.vtl
that
is used to build style sheets for SAS Web Report Studio.
\theme-name\Velocity\ThemeDescriptors\contexts
contains a context
file named theme-name.themeDescriptor.vctxt
that defines context values that can be used in theme
descriptor templates.
\theme-name\Velocity\ThemeDescriptors\contexts\custom\theme-name
contains theme descriptor
template files for building the XML files that define the available
collections of style sheets, theme templates, and images, including ComponentsThemes.vtl
, CustomThemes.vtl
, SASThemes.vtl
, SolutionsThemes.vtl
,
and WRSThemes.vtl
. The SemanticThemes.vtl
file
is added in the second maintenance release for SAS 9.3.
If you were to build
the new theme at this point, it would be a fully functional duplicate
of the Default theme.